/**
 * İstanbul Av Market — Site Geneli Tema
 * Outdoor / doğa / askeri ton paleti
 */

/* ── Global değişkenler & temel ── */
:root {
	--iam-forest: #2f4f2f;
	--iam-forest-alt: #3b5d3a;
	--iam-olive: #556b2f;
	--iam-olive-light: #6b8e23;
	--iam-deep: #354123;
	--iam-black-green: #0e1509;
	--iam-brown: #5c4033;
	--iam-gold: #e6b800;
	--iam-gold-bright: #ffc107;
	--iam-gold-dark: #c9a000;
	--iam-cream: #f4f1ea;

	--wd-primary-color: var(--iam-forest) !important;
	--wd-alternative-color: var(--iam-olive-light) !important;
	--wd-link-color: var(--iam-forest) !important;
	--wd-link-color-hover: var(--iam-olive-light) !important;
}

body {
	background-color: var(--iam-cream);
	color: #2a2a2a;
}

a {
	transition: color 0.2s ease;
}

a:hover {
	color: var(--iam-olive-light);
}

/* ── Butonlar ── */
.btn-color-primary,
button.btn-color-primary,
.single_add_to_cart_button,
.wd-product .wd-add-btn > a,
.wd-product .wd-add-btn .add-to-cart-loop,
.woocommerce-mini-cart__buttons .checkout,
.woocommerce-mini-cart__buttons .button.checkout {
	background: linear-gradient(135deg, var(--iam-gold-bright) 0%, var(--iam-gold-dark) 100%) !important;
	color: var(--iam-black-green) !important;
	border-color: var(--iam-gold-dark) !important;
	font-weight: 700 !important;
	border-radius: 6px !important;
	box-shadow: 0 3px 10px rgba(230, 184, 0, 0.3);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.btn-color-primary:hover,
button.btn-color-primary:hover,
.single_add_to_cart_button:hover,
.wd-product .wd-add-btn > a:hover,
.wd-product .wd-add-btn .add-to-cart-loop:hover {
	background: linear-gradient(135deg, #ffd54f 0%, var(--iam-gold) 100%) !important;
	color: var(--iam-black-green) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(230, 184, 0, 0.4) !important;
}

.btn-color-alt,
.btn-style-bordered.btn-color-primary {
	border-color: var(--iam-forest) !important;
	color: var(--iam-forest) !important;
}

.btn-color-alt:hover {
	background: var(--iam-forest) !important;
	color: #fff !important;
}

/* ── Başlıklar & bölüm ayırıcıları ── */
.wd-section-title .title,
.entry-title,
.woocommerce-loop-category__title,
h1, h2, h3 {
	color: var(--iam-deep);
}

.wd-section-title .title::after,
.wd-title-style-underlined .title::after {
	background: linear-gradient(90deg, var(--iam-gold-bright), var(--iam-olive-light)) !important;
}

.wd-title-color-default .title {
	color: var(--iam-deep) !important;
}

/* ── Ürün kartları ── */
.wd-product {
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wd-product:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(47, 79, 47, 0.15);
}

.wd-product .product-wrapper {
	background: #fff;
	border: 1px solid rgba(47, 79, 47, 0.1);
	border-radius: 8px;
}

.wd-product .wd-entities-title a {
	color: var(--iam-deep) !important;
	font-weight: 600;
	transition: color 0.2s ease;
}

.wd-product .wd-entities-title a:hover {
	color: var(--iam-olive-light) !important;
}

.wd-product .price,
.woocommerce-Price-amount {
	color: var(--iam-forest) !important;
	font-weight: 700;
}

.wd-product .price del .woocommerce-Price-amount {
	color: #999 !important;
	font-weight: 400;
}

/* İndirim rozeti */
.wd-product .onsale,
.onsale {
	background: linear-gradient(135deg, var(--iam-olive-light) 0%, var(--iam-olive) 100%) !important;
	color: #fff !important;
	font-weight: 700;
	border-radius: 4px;
}

/* ── Breadcrumb ── */
.wd-breadcrumbs,
.woocommerce-breadcrumb {
	background: rgba(47, 79, 47, 0.06);
	border-left: 4px solid var(--iam-gold);
	padding: 10px 16px !important;
	border-radius: 0 6px 6px 0;
}

.wd-breadcrumbs a,
.woocommerce-breadcrumb a {
	color: var(--iam-forest) !important;
}

.wd-breadcrumbs a:hover,
.woocommerce-breadcrumb a:hover {
	color: var(--iam-gold-dark) !important;
}

/* ── Kategori sayfası ── */
.woocommerce-products-header__title,
.page-title {
	color: var(--iam-deep) !important;
	border-bottom: 3px solid var(--iam-gold);
	padding-bottom: 10px;
	display: inline-block;
}

/* ── Sidebar filtreler ── */
.wd-widget.widget {
	border: 1px solid rgba(47, 79, 47, 0.12);
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.wd-widget .widget-title {
	color: var(--iam-forest) !important;
	border-bottom: 2px solid var(--iam-gold);
	padding-bottom: 8px;
}

/* ── Ürün detay sayfası ── */
.single-product .product_title {
	color: var(--iam-deep) !important;
}

.single-product .summary .price {
	color: var(--iam-forest) !important;
	font-size: 1.4em;
}

.single-product .woocommerce-tabs .tabs li.active a {
	color: var(--iam-forest) !important;
	border-bottom-color: var(--iam-gold) !important;
}

.single-product .woocommerce-tabs .tabs li a:hover {
	color: var(--iam-olive-light) !important;
}

/* ── Mini sepet & sepet ── */
.woocommerce-mini-cart,
.cart-widget-side {
	border-top: 3px solid var(--iam-gold) !important;
}

.woocommerce-mini-cart__total {
	background: rgba(47, 79, 47, 0.06);
	padding: 12px;
	border-radius: 6px;
}

/* ── Footer ── */
.wd-footer,
.wd-footer .main-footer {
	background: linear-gradient(180deg, var(--iam-deep) 0%, var(--iam-black-green) 100%) !important;
	color: rgba(255, 255, 255, 0.85);
}

.wd-footer .widget-title,
.wd-footer h4,
.wd-footer .wd-title {
	color: var(--iam-gold-bright) !important;
}

.wd-footer a {
	color: rgba(255, 255, 255, 0.8) !important;
	transition: color 0.2s ease;
}

.wd-footer a:hover {
	color: var(--iam-gold-bright) !important;
}

.wd-footer .wd-social-icons a {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid rgba(230, 184, 0, 0.25);
	border-radius: 50%;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wd-footer .wd-social-icons a:hover {
	background: var(--iam-gold-bright) !important;
	color: var(--iam-black-green) !important;
	transform: translateY(-2px);
}

.copyrights-wrapper {
	background: var(--iam-black-green) !important;
	border-top: 2px solid rgba(230, 184, 0, 0.2);
	color: rgba(255, 255, 255, 0.6) !important;
}

.copyrights-wrapper a {
	color: var(--iam-gold) !important;
}

/* ── Blog kartları ── */
.wd-post,
.blog-design-masonry .wd-post,
.wd-blog-holder .wd-post {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(47, 79, 47, 0.1);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wd-post:hover {
	box-shadow: 0 8px 24px rgba(47, 79, 47, 0.12);
	transform: translateY(-2px);
}

.wd-post .post-title a {
	color: var(--iam-deep) !important;
}

.wd-post .post-title a:hover {
	color: var(--iam-olive-light) !important;
}

.wd-post .wd-post-cat a {
	background: var(--iam-forest) !important;
	color: #fff !important;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 11px;
}

/* ── Form elemanları ── */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
	border-color: var(--iam-olive-light) !important;
	box-shadow: 0 0 0 2px rgba(107, 142, 35, 0.2) !important;
}

/* ── Scroll to top ── */
.wd-scroll-top {
	background: var(--iam-forest) !important;
	border: 2px solid var(--iam-gold) !important;
	color: var(--iam-gold-bright) !important;
}

.wd-scroll-top:hover {
	background: var(--iam-gold-bright) !important;
	color: var(--iam-black-green) !important;
}

/* ── Promo / banner alanları ── */
.wd-banner .banner-title,
.wd-info-box .info-box-title {
	color: var(--iam-deep);
}

.wd-info-box:hover .box-icon {
	color: var(--iam-gold-bright) !important;
}

/* ── Pagination ── */
.wd-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers.current {
	background: var(--iam-forest) !important;
	border-color: var(--iam-forest) !important;
	color: #fff !important;
}

.wd-pagination .page-numbers:hover,
.woocommerce-pagination .page-numbers:hover {
	background: var(--iam-gold-bright) !important;
	border-color: var(--iam-gold) !important;
	color: var(--iam-black-green) !important;
}

/* ── Mobil sticky bar ── */
.wd-sticky-btn-cart .wd-sticky-btn {
	background: var(--iam-forest) !important;
}

.wd-sticky-btn-cart .wd-sticky-btn-icon {
	background: var(--iam-gold-bright) !important;
	color: var(--iam-black-green) !important;
}

/* ── Ürün teknik özellik tabloları ── */
.single-product .entry-content table:not(.shop_table):not(.variations):not(.group_table),
.single-product .woocommerce-Tabs-panel table:not(.shop_table),
.single-product .wc-tab table:not(.shop_table),
.single-product .wd-accordion-content table:not(.shop_table),
.single-product .woocommerce-product-details__short-description table {
	width: 100% !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	margin: 1.25rem 0 2rem !important;
	border: 1px solid rgba(47, 79, 47, 0.14) !important;
	border-top: 3px solid var(--iam-gold) !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 6px 24px rgba(47, 79, 47, 0.08) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.single-product .entry-content table:not(.shop_table):not(.variations) tbody tr,
.single-product .woocommerce-Tabs-panel table tbody tr,
.single-product .wc-tab table tbody tr,
.single-product .wd-accordion-content table tbody tr {
	transition: background-color 0.2s ease;
}

.single-product .entry-content table:not(.shop_table):not(.variations) tbody tr:nth-child(even),
.single-product .woocommerce-Tabs-panel table tbody tr:nth-child(even),
.single-product .wc-tab table tbody tr:nth-child(even),
.single-product .wd-accordion-content table tbody tr:nth-child(even) {
	background: rgba(244, 241, 234, 0.65) !important;
}

.single-product .entry-content table:not(.shop_table):not(.variations) tbody tr:hover,
.single-product .woocommerce-Tabs-panel table tbody tr:hover,
.single-product .wc-tab table tbody tr:hover,
.single-product .wd-accordion-content table tbody tr:hover {
	background: rgba(47, 79, 47, 0.05) !important;
}

.single-product .entry-content table:not(.shop_table):not(.variations) td,
.single-product .woocommerce-Tabs-panel table td,
.single-product .wc-tab table td,
.single-product .wd-accordion-content table td {
	padding: 13px 18px !important;
	border: none !important;
	border-bottom: 1px solid rgba(47, 79, 47, 0.1) !important;
	vertical-align: middle !important;
	color: #2a2f2e !important;
}

.single-product .entry-content table:not(.shop_table):not(.variations) tbody tr:last-child td,
.single-product .woocommerce-Tabs-panel table tbody tr:last-child td,
.single-product .wc-tab table tbody tr:last-child td,
.single-product .wd-accordion-content table tbody tr:last-child td {
	border-bottom: none !important;
}

.single-product .entry-content table:not(.shop_table):not(.variations) tr td:first-child,
.single-product .woocommerce-Tabs-panel table tr td:first-child,
.single-product .wc-tab table tr td:first-child,
.single-product .wd-accordion-content table tr td:first-child {
	width: 38% !important;
	min-width: 140px !important;
	font-weight: 600 !important;
	color: var(--iam-forest) !important;
	background: rgba(47, 79, 47, 0.07) !important;
	border-right: 1px solid rgba(47, 79, 47, 0.08) !important;
}

.single-product .entry-content table:not(.shop_table):not(.variations) tr td:last-child,
.single-product .woocommerce-Tabs-panel table tr td:last-child,
.single-product .wc-tab table tr td:last-child,
.single-product .wd-accordion-content table tr td:last-child {
	font-weight: 500 !important;
	color: #333 !important;
	background: transparent !important;
}

/* Tablo başlığı (TEKNİK ÖZELLİKLER vb.) */
.single-product .entry-content h3,
.single-product .woocommerce-Tabs-panel h3,
.single-product .wc-tab h3,
.single-product .wd-accordion-content h3 {
	color: var(--iam-forest) !important;
	font-size: 1.15rem !important;
	font-weight: 700 !important;
	margin: 1.75rem 0 0.75rem !important;
	padding-bottom: 0.5rem !important;
	border-bottom: 2px solid var(--iam-gold) !important;
	display: inline-block !important;
	letter-spacing: 0.02em;
}

.single-product .entry-content h2 b,
.single-product .entry-content h3 b {
	color: inherit;
}

/* Liste formatındaki özellikler (ul/li) */
.single-product .entry-content ul:not(.woocommerce-error):not(.wd-nav),
.single-product .woocommerce-Tabs-panel ul:not(.woocommerce-error),
.single-product .wc-tab ul:not(.woocommerce-error) {
	list-style: none !important;
	padding: 0 !important;
	margin: 1rem 0 1.5rem !important;
	border: 1px solid rgba(47, 79, 47, 0.12) !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: #fff !important;
	box-shadow: 0 4px 16px rgba(47, 79, 47, 0.06) !important;
}

.single-product .entry-content ul:not(.woocommerce-error) li,
.single-product .woocommerce-Tabs-panel ul li,
.single-product .wc-tab ul li {
	padding: 12px 16px !important;
	border-bottom: 1px solid rgba(47, 79, 47, 0.08) !important;
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.single-product .entry-content ul:not(.woocommerce-error) li:nth-child(even),
.single-product .woocommerce-Tabs-panel ul li:nth-child(even),
.single-product .wc-tab ul li:nth-child(even) {
	background: rgba(244, 241, 234, 0.5) !important;
}

.single-product .entry-content ul:not(.woocommerce-error) li:last-child,
.single-product .woocommerce-Tabs-panel ul li:last-child,
.single-product .wc-tab ul li:last-child {
	border-bottom: none !important;
}

.single-product .entry-content ul li b,
.single-product .woocommerce-Tabs-panel ul li b,
.single-product .wc-tab ul li b {
	color: var(--iam-forest) !important;
	font-weight: 600 !important;
	min-width: 120px;
	display: inline-block;
}

/* Mobil: tablo kart görünümü */
@media (max-width: 600px) {
	.single-product .entry-content table:not(.shop_table):not(.variations) tr,
	.single-product .woocommerce-Tabs-panel table tr,
	.single-product .wc-tab table tr,
	.single-product .wd-accordion-content table tr {
		display: block !important;
		border-bottom: 1px solid rgba(47, 79, 47, 0.1) !important;
	}

	.single-product .entry-content table:not(.shop_table):not(.variations) tr td,
	.single-product .woocommerce-Tabs-panel table tr td,
	.single-product .wc-tab table tr td,
	.single-product .wd-accordion-content table tr td {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		border-right: none !important;
		padding: 10px 14px !important;
	}

	.single-product .entry-content table:not(.shop_table):not(.variations) tr td:first-child,
	.single-product .woocommerce-Tabs-panel table tr td:first-child,
	.single-product .wc-tab table tr td:first-child,
	.single-product .wd-accordion-content table tr td:first-child {
		padding-bottom: 4px !important;
		font-size: 12px !important;
		text-transform: uppercase !important;
		letter-spacing: 0.04em !important;
		background: rgba(47, 79, 47, 0.1) !important;
	}

	.single-product .entry-content table:not(.shop_table):not(.variations) tr td:last-child,
	.single-product .woocommerce-Tabs-panel table tr td:last-child,
	.single-product .wc-tab table tr td:last-child,
	.single-product .wd-accordion-content table tr td:last-child {
		padding-top: 4px !important;
		padding-bottom: 12px !important;
	}
}

/* ── Blog rehber ürün listesi ── */
.iam-guide-products {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	border: 1px solid rgba(47, 79, 47, 0.12);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.iam-guide-products li {
	padding: 12px 16px;
	border-bottom: 1px solid rgba(47, 79, 47, 0.08);
	font-size: 14px;
	line-height: 1.5;
}

.iam-guide-products li:last-child {
	border-bottom: none;
}

.iam-guide-products a {
	color: var(--iam-forest) !important;
	text-decoration: none;
	font-weight: 600;
}

.iam-guide-products a:hover {
	color: var(--iam-olive-light) !important;
	text-decoration: underline;
}
