/*
Theme Name:        Organik Pazar
Theme URI:         https://example.com/organik-pazar
Author:            Organik Pazar
Description:       Doğal/organik gıda e-ticareti için minimalist, mobil öncelikli WooCommerce teması. Blok düzenleyiciyle düzenlenebilir ana sayfa, hazır desenler, AJAX mini sepet. Rozetler (kuru buz, tahmini teslimat, kargo bedava, kritik stok), canlı arama ve ürün vitrini blokları için "Organik Pazar Core" eklentisiyle birlikte kullanın.
Version:           1.2.1
Requires at least: 6.5
Tested up to:      7.1
Requires PHP:      7.4
WC requires at least: 8.0
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       organik-pazar
Tags:              e-commerce, woocommerce, custom-logo, custom-menu, one-column
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--op-color-bg: #ffffff;
	--op-color-page: #f5f6f4;
	--op-color-surface: #f0f2ee;
	--op-color-surface-2: #eceee9;
	--op-color-border: #e4e6e1;
	--op-color-text: #1c1d1a;
	--op-color-muted: #6b6c66;
	--op-color-primary: #128a5e;
	--op-color-primary-hover: #0e7049;
	--op-color-primary-soft: #dcefe5;
	--op-color-star: #f2a516;

	/* Badge palettes */
	--op-cold-bg: #e9f4fb;
	--op-cold-fg: #1d5d85;
	--op-delivery-bg: #f4f2ec;
	--op-delivery-fg: #4b463a;
	--op-free-bg: #e3f3e7;
	--op-free-fg: #146a2f;
	--op-stock-bg: #fff0e5;
	--op-stock-fg: #a8450f;

	--op-radius-sm: 8px;
	--op-radius: 12px;
	--op-radius-lg: 18px;
	--op-shadow-sm: 0 1px 2px rgba(20, 24, 20, 0.06);
	--op-shadow: 0 14px 34px -16px rgba(20, 24, 20, 0.22);

	--op-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--op-container: 1240px;
	--op-gutter: 16px;
	--op-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
	:root {
		--op-gutter: 24px;
	}
}

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

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

body {
	margin: 0;
	background: var(--op-color-page);
	color: var(--op-color-text);
	font-family: var(--op-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--op-color-primary);
	text-decoration: none;
}

a:hover {
	color: var(--op-color-primary-hover);
}

:focus-visible {
	outline: 2px solid var(--op-color-primary);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
}

.op-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.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:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	top: 8px;
	left: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: #fff;
	border-radius: var(--op-radius-sm);
	box-shadow: var(--op-shadow);
}

.op-container {
	width: 100%;
	max-width: var(--op-container);
	margin: 0 auto;
	padding: 0 var(--op-gutter);
}

.op-site-content {
	min-height: 50vh;
	padding: 24px 0 56px;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.op-btn,
.woocommerce a.button.op-btn,
.woocommerce button.button.op-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--op-color-primary);
	color: #fff;
	font: 600 14px/1.2 var(--op-font);
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s var(--op-ease), transform 0.1s var(--op-ease);
}

.op-btn:hover,
.woocommerce a.button.op-btn:hover,
.woocommerce button.button.op-btn:hover {
	background: var(--op-color-primary-hover);
	color: #fff;
}

.op-btn:active {
	transform: scale(0.98);
}

.op-btn--block,
.woocommerce a.button.op-btn--block {
	display: flex;
	width: 100%;
}

.op-btn--ghost {
	background: transparent;
	border-color: var(--op-color-primary);
	color: var(--op-color-primary);
}

.op-btn--ghost:hover {
	background: var(--op-color-primary);
}

.op-btn--disabled,
.op-btn[disabled],
.op-btn[disabled]:hover {
	background: var(--op-color-surface-2);
	border-color: var(--op-color-border);
	color: var(--op-color-muted);
	cursor: not-allowed;
	transform: none;
}

/* WooCommerce AJAX states */
.woocommerce a.button.op-btn.loading {
	opacity: 0.75;
	padding-right: 18px;
	pointer-events: none;
}

.woocommerce a.button.op-btn.loading::after {
	content: "";
	position: static;
	width: 14px;
	height: 14px;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	font-family: inherit;
	animation: op-spin 0.7s linear infinite;
}

.woocommerce a.button.op-btn.added::after {
	content: "✓";
	position: static;
	margin: 0;
	font-family: inherit;
	vertical-align: baseline;
}

/* Toast replaces WooCommerce's inline "Sepeti görüntüle" link. */
.op-card .added_to_cart {
	display: none !important;
}

@keyframes op-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   4. Top bar, header, search, floating cart, mobile drawer
   ========================================================================== */
.op-topbar {
	background: var(--op-color-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

.op-topbar p {
	margin: 0;
	padding: 8px 0;
}

/* Header: [☰] logo · search · Siparişlerim */
.op-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--op-color-border);
}

.admin-bar .op-header {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .op-header {
		top: 32px;
	}
}

.op-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas:
		"toggle brand orders"
		"search search search";
	align-items: center;
	gap: 8px;
	padding-top: 8px;
	padding-bottom: 10px;
}

.op-header__menu-toggle {
	grid-area: toggle;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--op-color-text);
	cursor: pointer;
}

.op-header__menu-toggle:hover {
	background: var(--op-color-surface);
}

.op-header__brand {
	grid-area: brand;
	min-width: 0;
}

.op-header__brand .custom-logo-link {
	display: inline-block;
}

.op-header__brand .custom-logo {
	width: auto;
	max-height: 38px;
}

.op-header__site-name {
	display: inline-block;
	color: var(--op-color-text);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.op-header__orders {
	grid-area: orders;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	background: var(--op-color-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.op-header__orders:hover,
.op-header__orders:focus-visible {
	background: var(--op-color-primary-hover);
	color: #fff;
}

.op-header__orders-icon {
	width: 18px;
	height: 18px;
}

/* Tiny phones: icon-only button, label kept for screen readers. */
@media (max-width: 370px) {
	.op-header__orders {
		padding: 0 10px;
	}

	.op-header__orders span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

@media (min-width: 992px) {
	.op-header__inner {
		grid-template-columns: 1fr minmax(0, 420px) 1fr;
		grid-template-areas: "brand search orders";
		gap: 24px;
		min-height: 64px;
		padding-top: 8px;
		padding-bottom: 8px;
	}

	.op-header__menu-toggle {
		display: none;
	}

	.op-header__brand .custom-logo {
		max-height: 44px;
	}

	.op-header__orders {
		justify-self: end;
		height: 40px;
		padding: 0 16px;
		font-size: 14px;
	}

	.op-header__orders-icon {
		display: none;
	}
}

/* Live search */
.op-search {
	grid-area: search;
	position: relative;
	width: 100%;
}

.op-search__form {
	position: relative;
	display: flex;
	align-items: center;
}

.op-search__icon {
	position: absolute;
	left: 14px;
	display: flex;
	color: var(--op-color-muted);
	pointer-events: none;
}

.op-search__icon .op-icon {
	width: 18px;
	height: 18px;
}

.op-search__input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 42px;
	border: 1px solid var(--op-color-border);
	border-radius: 14px;
	background: #fff;
	color: var(--op-color-text);
	font: 400 14px var(--op-font);
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.op-search__input::placeholder {
	color: #9a9b95;
}

.op-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.op-search__input:focus {
	outline: none;
	border-color: var(--op-color-primary);
	box-shadow: 0 0 0 3px var(--op-color-primary-soft);
}

.op-search.is-loading .op-search__icon {
	animation: op-pulse 0.9s ease-in-out infinite;
}

@keyframes op-pulse {
	50% {
		opacity: 0.3;
	}
}

.op-search__panel {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 50;
	max-height: min(70vh, 480px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius);
	background: #fff;
	box-shadow: var(--op-shadow);
}

@media (min-width: 992px) {
	/* Results wider than the compact input. */
	.op-search__panel {
		left: 50%;
		right: auto;
		width: min(560px, 90vw);
		transform: translateX(-50%);
	}
}

.op-search__panel[hidden] {
	display: none;
}

.op-search__option {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--op-radius-sm);
	color: var(--op-color-text);
}

.op-search__option:hover,
.op-search__option.is-active {
	background: var(--op-color-surface);
	color: var(--op-color-text);
}

.op-search__thumb {
	width: 48px;
	height: 48px;
	border-radius: var(--op-radius-sm);
	object-fit: cover;
	background: var(--op-color-surface);
}

.op-search__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.op-search__title {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.op-search__meta {
	color: var(--op-color-muted);
	font-size: 12px;
}

.op-search__price {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.op-search__message {
	margin: 0;
	padding: 14px;
	color: var(--op-color-muted);
	font-size: 14px;
	text-align: center;
}

.op-search__all {
	display: block;
	margin-top: 4px;
	padding: 10px;
	border-top: 1px solid var(--op-color-border);
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

/* Floating cart tab (right edge) */
.op-float-cart {
	position: fixed;
	top: 50%;
	right: 0;
	z-index: 90;
	display: block;
	min-width: 100px;
	padding: 12px 10px;
	border-radius: 12px 0 0 12px;
	background: var(--op-color-primary);
	color: #fff;
	box-shadow: -8px 12px 30px -14px rgba(0, 0, 0, 0.45);
	transform: translateY(-50%);
	transition: background-color 0.2s;
}

.op-float-cart:hover,
.op-float-cart:focus-visible {
	background: var(--op-color-primary-hover);
	color: #fff;
}

.op-float-cart.is-bumped {
	animation: op-bump 0.45s var(--op-ease);
}

.op-float-cart__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.op-float-cart__count {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.op-float-cart__icon {
	width: 20px;
	height: 20px;
}

.op-float-cart__total {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	background: #fff;
	color: var(--op-color-primary);
	font-size: 14px;
	font-weight: 800;
	text-align: center;
	white-space: nowrap;
}

@keyframes op-bump {
	40% {
		transform: translateY(-50%) scale(1.08);
	}
}

@media (max-width: 767px) {
	.op-float-cart {
		min-width: 76px;
		padding: 8px 6px;
	}

	.op-float-cart__inner {
		gap: 6px;
	}

	.op-float-cart__count,
	.op-float-cart__total {
		font-size: 12px;
	}

	.op-float-cart__icon {
		width: 16px;
		height: 16px;
	}

	.op-float-cart__total {
		padding: 5px 6px;
	}
}

/* Mobile drawer (left) */
html.op-no-scroll {
	overflow: hidden;
}

.op-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000;
}

.op-drawer[hidden] {
	display: none;
}

.op-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 26, 24, 0.72);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.op-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(300px, 82vw);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	box-shadow: 12px 0 40px -20px rgba(0, 0, 0, 0.5);
	outline: none;
	transform: translateX(-100%);
	transition: transform 0.28s var(--op-ease);
}

.op-drawer.is-open .op-drawer__backdrop {
	opacity: 1;
}

.op-drawer.is-open .op-drawer__panel {
	transform: none;
}

.op-drawer__brand {
	display: flex;
	justify-content: center;
	padding: 22px 16px 20px;
	border-bottom: 1px solid var(--op-color-border);
}

.op-drawer__brand .custom-logo {
	width: auto;
	max-height: 56px;
}

.op-drawer__nav {
	padding: 20px 10px;
}

.op-drawer__nav--secondary {
	border-top: 1px solid var(--op-color-border);
}

.op-drawer__menu,
.op-drawer__submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.op-drawer__menu {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.op-drawer__row {
	display: flex;
	align-items: center;
	border-radius: 999px;
	transition: background-color 0.15s;
}

.op-drawer__row:hover {
	background: var(--op-color-surface);
}

.op-drawer__link {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-height: 50px;
	padding: 10px 16px 10px 84px;
	color: #3b3c38;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
}

.op-drawer__link:hover {
	color: var(--op-color-text);
}

.op-drawer__icon {
	width: 21px;
	height: 21px;
	margin-left: -34px;
	color: #6d6e69;
}

.op-drawer__item.is-current > .op-drawer__row {
	background: var(--op-color-primary-soft);
}

.op-drawer__item.is-current > .op-drawer__row .op-drawer__link,
.op-drawer__item.is-current > .op-drawer__row .op-drawer__icon {
	color: var(--op-color-primary);
}

.op-drawer__sub-toggle {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #4b4c47;
	cursor: pointer;
}

.op-drawer__sub-toggle .op-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s;
}

.op-drawer__sub-toggle[aria-expanded="true"] .op-icon {
	transform: rotate(180deg);
}

.op-drawer__submenu {
	margin: 2px 0 6px;
}

.op-drawer__submenu .op-drawer__link {
	min-height: 42px;
	padding-left: 96px;
	color: var(--op-color-muted);
	font-size: 15px;
}

.op-drawer__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--op-color-text);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.op-drawer.is-open .op-drawer__close {
	opacity: 1;
}

/* ==========================================================================
   5. Shop archive chrome
   ========================================================================== */
.op-shop .woocommerce-products-header__title {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
}

.op-shop .woocommerce-result-count {
	color: var(--op-color-muted);
	font-size: 13px;
}

.op-shop .woocommerce-ordering select {
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-sm);
	background: #fff;
	font: 14px var(--op-font);
}

.woocommerce nav.woocommerce-pagination ul {
	display: inline-flex;
	gap: 6px;
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	min-width: 40px;
	padding: 10px 12px;
	border-radius: var(--op-radius-sm);
	background: var(--op-color-surface);
	color: var(--op-color-text);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--op-color-primary);
	color: #fff;
}

/* ==========================================================================
   6. Product grid + cards
   ========================================================================== */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	float: none;
	clear: none;
	width: auto;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	ul.products,
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}

@media (min-width: 1100px) {
	ul.products.columns-4,
	.woocommerce ul.products.columns-4,
	.woocommerce-page ul.products.columns-4,
	ul.products.columns-5,
	.woocommerce ul.products.columns-5 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 24px;
	}
}

.op-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius-lg);
	background: #fff;
	transition: box-shadow 0.25s var(--op-ease), border-color 0.25s var(--op-ease);
}

.op-card:hover {
	border-color: transparent;
	box-shadow: var(--op-shadow);
}

/* Media (4:5, hover zoom) */
.op-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--op-color-surface);
}

.woocommerce ul.products li.product .op-card__media img,
.op-card__media img {
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 0.6s var(--op-ease);
}

.op-card:hover .op-card__media img {
	transform: scale(1.06);
}

.op-card.outofstock .op-card__media img {
	filter: grayscale(0.6);
	opacity: 0.75;
}

.op-card__flag {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #c2410c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.op-card__flag--muted {
	background: rgba(28, 29, 26, 0.78);
}

/* Body */
.op-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 12px 12px 14px;
}

.woocommerce ul.products li.product .op-card__title,
.op-card__title {
	display: -webkit-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.op-card__title a {
	color: var(--op-color-text);
}

.op-card__title a::after {
	/* Whole card body is clickable via the title link, buttons stay above it. */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.op-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 12px;
}

.op-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--op-color-text);
}

.op-card__rating .op-icon {
	width: 14px;
	height: 14px;
	color: var(--op-color-star);
}

.op-card__rating-value {
	font-weight: 700;
}

.op-card__rating-count {
	color: var(--op-color-muted);
}

.op-card__qty {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 2px 8px;
	border: 1px solid var(--op-color-border);
	border-radius: 999px;
	color: var(--op-color-muted);
	font-weight: 500;
}

.woocommerce ul.products li.product .op-card__price,
.op-card__price {
	margin: 2px 0 0;
	color: var(--op-color-text);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.op-card__price del {
	margin-right: 6px;
	color: var(--op-color-muted);
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
}

.op-card__price ins {
	text-decoration: none;
}

.op-card__actions {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding-top: 8px;
}

.woocommerce ul.products li.product .op-card__actions .button {
	margin-top: 0;
}

@media (min-width: 768px) {
	.op-card__body {
		padding: 14px 16px 16px;
	}

	.woocommerce ul.products li.product .op-card__title,
	.op-card__title {
		font-size: 15px;
	}

	.woocommerce ul.products li.product .op-card__price,
	.op-card__price {
		font-size: 19px;
	}
}

/* ==========================================================================
   7. Badges / info strips
   ========================================================================== */
.op-badges {
	display: flex;
	flex-direction: column;
	gap: 5px;
	list-style: none;
	margin: 4px 0 0;
	padding: 0;
}

.op-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 8px;
	border-radius: var(--op-radius-sm);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.op-badge .op-icon {
	width: 14px;
	height: 14px;
}

.op-badge--cold {
	background: var(--op-cold-bg);
	color: var(--op-cold-fg);
}

.op-badge--delivery {
	background: var(--op-delivery-bg);
	color: var(--op-delivery-fg);
}

.op-badge--free {
	background: var(--op-free-bg);
	color: var(--op-free-fg);
	font-weight: 800;
	letter-spacing: 0.01em;
}

.op-badge--stock {
	background: var(--op-stock-bg);
	color: var(--op-stock-fg);
}

@media (min-width: 768px) {
	.op-badge {
		font-size: 12px;
	}
}

/* Single product reuse */
.op-single-qty {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	border: 1px solid var(--op-color-border);
	border-radius: 999px;
	color: var(--op-color-muted);
	font-size: 14px;
	font-weight: 500;
}

.op-badges--single {
	max-width: 420px;
	margin: 0 0 20px;
	gap: 8px;
}

.op-badges--single .op-badge {
	padding: 9px 12px;
	font-size: 13px;
}

.op-badges--single .op-badge .op-icon {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   8. Trust / guarantee banner
   ========================================================================== */
.op-trust {
	padding: 48px 0;
	background: var(--op-color-primary-soft);
}

.op-trust__inner {
	display: grid;
	gap: 28px;
	align-items: center;
}

.op-trust__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	color: var(--op-color-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.op-trust__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 3.2vw, 32px);
	font-weight: 800;
}

.op-trust__text {
	max-width: 520px;
	color: var(--op-color-muted);
}

.op-trust__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	list-style: none;
}

.op-trust__feature {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: var(--op-radius);
	background: #fff;
	box-shadow: var(--op-shadow-sm);
}

.op-trust__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--op-color-primary-soft);
	color: var(--op-color-primary);
}

.op-trust__feature strong {
	display: block;
	font-size: 14px;
	line-height: 1.3;
}

.op-trust__feature div > span {
	display: block;
	margin-top: 2px;
	color: var(--op-color-muted);
	font-size: 12px;
	line-height: 1.4;
}

@media (min-width: 992px) {
	.op-trust {
		padding: 64px 0;
	}

	.op-trust__inner {
		grid-template-columns: 1fr 1.1fr;
		gap: 56px;
	}

	.op-trust__features {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.op-footer {
	padding: 48px 0 0;
	background: #fff;
	border-top: 1px solid var(--op-color-border);
	font-size: 14px;
}

.op-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
	padding-bottom: 40px;
}

.op-footer__col--contact {
	grid-column: 1 / -1;
}

.op-footer__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.op-footer__menu {
	list-style: none;
}

.op-footer__menu li + li {
	margin-top: 8px;
}

.op-footer__menu a {
	color: var(--op-color-muted);
}

.op-footer__menu a:hover {
	color: var(--op-color-primary);
}

.op-footer__contact {
	list-style: none;
	font-style: normal;
}

.op-footer__contact li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--op-color-muted);
}

.op-footer__contact li + li {
	margin-top: 10px;
}

.op-footer__contact .op-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--op-color-primary);
}

.op-footer__contact a {
	color: var(--op-color-text);
	font-weight: 600;
}

.op-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
	padding-top: 20px;
	padding-bottom: 24px;
	border-top: 1px solid var(--op-color-border);
}

.op-footer__copy {
	margin: 0;
	color: var(--op-color-muted);
	font-size: 13px;
}

/* Payment & security badges (text-based placeholders; replace with official SVGs if licensed) */
.op-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.op-pay {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--op-color-border);
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
	font-weight: 800;
}

.op-pay--troy {
	color: #00a1a7;
	font-size: 14px;
	text-transform: lowercase;
}

.op-pay--visa {
	color: #1a1f71;
	font-size: 14px;
	font-style: italic;
	letter-spacing: 0.02em;
}

.op-pay--mastercard {
	color: #1c1d1a;
}

.op-pay__circles {
	position: relative;
	display: inline-block;
	width: 26px;
	height: 16px;
}

.op-pay__circles::before,
.op-pay__circles::after {
	content: "";
	position: absolute;
	top: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.op-pay__circles::before {
	left: 0;
	background: #eb001b;
}

.op-pay__circles::after {
	right: 0;
	background: #f79e1b;
	mix-blend-mode: multiply;
}

.op-pay--ssl {
	color: var(--op-color-primary);
}

.op-pay--ssl .op-icon {
	width: 14px;
	height: 14px;
}

@media (min-width: 768px) {
	.op-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.op-footer__col--contact {
		grid-column: auto;
	}

	.op-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ==========================================================================
   10. Toast
   ========================================================================== */
/* Sits above the WhatsApp button (Organik Pazar Core adds body.opc-has-wa). */
.opc-has-wa .op-toast {
	bottom: 96px;
}

.op-toast {
	position: fixed;
	left: 50%;
	bottom: 20px;
	z-index: 999;
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: calc(100vw - 32px);
	padding: 12px 16px;
	border-radius: var(--op-radius);
	background: var(--op-color-text);
	color: #fff;
	font-size: 14px;
	box-shadow: var(--op-shadow);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 16px);
	transition: opacity 0.25s var(--op-ease), transform 0.25s var(--op-ease);
}

.op-toast.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.op-toast a {
	color: #b9e4c4;
	font-weight: 700;
	white-space: nowrap;
}

/* ==========================================================================
   11. Generic content (pages, cart, checkout, notices)
   ========================================================================== */
.op-entry {
	max-width: 860px;
	margin: 0 auto 40px;
}

.op-entry--wide {
	max-width: none;
}

.op-entry__title {
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 800;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--op-color-primary);
	border-radius: var(--op-radius-sm);
	background: var(--op-color-surface);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--op-color-primary);
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	border-radius: 10px;
	background: var(--op-color-primary);
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--op-color-primary-hover);
}

/* ==========================================================================
   12. Homepage (front-page.php) — block content laid out edge to edge
   ========================================================================== */
.op-is-front .op-site-content {
	padding-top: 8px;
}

/* Slider: gutter as margin (not padding) so slides fill the rounded frame edge to edge. */
.op-front.op-front > .op-slider {
	width: calc(100% - 2 * var(--op-gutter));
	max-width: calc(var(--op-container) - 2 * var(--op-gutter));
	padding-inline: 0;
}

/* Slider → category pills sit close together, as in the reference layout. */
.op-front.op-front > .op-slider + .op-pills {
	margin-top: 12px;
}

.op-front.op-front > .op-pills + * {
	margin-top: 20px;
}

.op-shop .op-pills {
	margin: 0 0 20px;
}

.op-front.op-front > * {
	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto;
	padding-inline: var(--op-gutter);
}

.op-front.op-front > * + * {
	margin-top: clamp(32px, 5vw, 56px);
}

.op-front.op-front > .alignwide {
	max-width: var(--op-container);
}

.op-front.op-front > .alignfull {
	max-width: none;
}

/* Hero (core Cover block) */
.op-hero.wp-block-cover {
	padding-block: clamp(48px, 8vw, 96px);
}

.op-hero .wp-block-cover__inner-container > .wp-block-group > * + * {
	margin-top: 16px;
}

.op-hero h1 {
	margin: 0;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.op-hero .wp-block-buttons {
	margin-top: 28px;
}

.op-hero .is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	color: #fff;
}

.op-eyebrow {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}

/* USP strip */
/* Overrides the Group block's auto-fill grid: 2 columns on phones, 4 on desktop. */
.op-front .op-usp.op-usp,
.op-usp.op-usp.op-usp {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

@media (min-width: 900px) {
	.op-front .op-usp.op-usp,
	.op-usp.op-usp.op-usp {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.op-usp__item {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--op-color-border);
	border-radius: var(--op-radius);
	background: #fff;
	color: var(--op-color-muted);
	font-size: 13px;
	line-height: 1.45;
}

.op-usp__item strong {
	color: var(--op-color-text);
	font-size: 14px;
}

.op-usp__icon {
	display: block;
	margin-bottom: 6px;
	font-size: 22px;
	line-height: 1;
}

/* Story band */
.op-story.op-story {
	padding-block: clamp(40px, 7vw, 72px);
}

.op-story h2 {
	font-size: clamp(22px, 3vw, 30px);
	font-weight: 800;
}

/* Core buttons outside the hero follow the brand color */
.wp-block-button__link {
	border-radius: 10px;
}

.op-footer__about {
	margin: -4px 0 14px;
	color: var(--op-color-muted);
}

/* ==========================================================================
   13. Motion preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.op-card:hover .op-card__media img {
		transform: none;
	}
}
