/* ==========================================================================
   Early Coffee Roastery - Tek urun sayfasi (single product)
   Hedef tasarimin birebir uygulamasi.
   ========================================================================== */

.ec-product,
.ec-product * {
	box-sizing: border-box;
}

.ec-product {
	--ec-cream: #f4f0e8;
	--ec-dark: #1b1815;
	--ec-ink: #2b2621;
	--ec-muted: #6f695f;
	--ec-line: #ddd6c8;
	--ec-tan: #b08a57;
	--ec-serif: 'Playfair Display', Georgia, serif;
	--ec-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	background: var(--ec-cream);
	color: var(--ec-ink);
	font-family: var(--ec-sans);
}

/* Elementor tema kaplarini notrle */
.ec-product .summary,
.ec-product .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Ust blok: galeri + ozet
   -------------------------------------------------------------------------- */
.ec-product__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 40px 56px;
}

@media (max-width: 1023px) {
	.ec-product__top {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 20px 20px 40px;
	}
}

/* --------------------------------------------------------------------------
   Galeri
   -------------------------------------------------------------------------- */
.ec-gallery {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	opacity: 1 !important;
}

.ec-gallery__thumbs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ec-gallery__thumb {
	width: 96px;
	height: 96px;
	padding: 0;
	border: 1px solid var(--ec-line);
	background: #fff;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
	transition: border-color .2s ease;
}

.ec-gallery__thumb.is-active,
.ec-gallery__thumb:hover {
	border-color: var(--ec-dark);
}

.ec-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ec-gallery__stage {
	position: relative;
	background: #e9e3d7;
	min-height: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.ec-gallery__figure,
.ec-gallery__link {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}

.ec-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ec-gallery__img--placeholder {
	object-fit: contain;
	padding: 60px;
	opacity: .5;
}

.ec-gallery__expand {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(27, 24, 21, .35);
	background: rgba(255, 255, 255, .82);
	color: var(--ec-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.ec-gallery__expand svg {
	width: 20px;
	height: 20px;
}

@media (max-width: 767px) {
	.ec-gallery {
		grid-template-columns: minmax(0, 1fr);
	}

	.ec-gallery__thumbs {
		flex-direction: row;
		order: 2;
		overflow-x: auto;
	}

	.ec-gallery__thumb {
		flex: 0 0 72px;
		width: 72px;
		height: 72px;
	}

	.ec-gallery__stage {
		order: 1;
		min-height: 320px;
	}
}

/* --------------------------------------------------------------------------
   Ozet (sag kolon)
   -------------------------------------------------------------------------- */
.ec-product__summary {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.ec-product__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ec-badge {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--ec-line);
	background: #fbf9f4;
	color: var(--ec-muted);
	font-size: 11px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}

.ec-badge--cat {
	border-color: transparent;
	background: transparent;
	padding-left: 0;
	color: var(--ec-tan);
}

.ec-badge--cat a {
	color: inherit;
	text-decoration: none;
}

.ec-product__title {
	font-family: var(--ec-serif);
	font-weight: 600;
	font-size: 42px;
	line-height: 1.1;
	margin: 0;
	color: var(--ec-dark);
}

.ec-product__subtitle {
	margin: 0;
	font-size: 17px;
	color: var(--ec-muted);
	font-style: italic;
}

.ec-product__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ec-muted);
}

.ec-stars .is-on {
	color: var(--ec-tan);
}

.ec-stars .is-off {
	color: #cfc8bb;
}

.ec-product__price,
.ec-product__price .price {
	font-family: var(--ec-serif);
	font-size: 30px;
	font-weight: 600;
	color: var(--ec-dark);
}

.ec-product__price del {
	color: var(--ec-muted);
	font-size: 20px;
	margin-right: 10px;
}

.ec-product__price ins {
	text-decoration: none;
}

.ec-product__excerpt {
	font-size: 15px;
	line-height: 1.8;
	color: var(--ec-muted);
	max-width: 560px;
}

.ec-product__excerpt p {
	margin: 0 0 10px;
}

/* --------------------------------------------------------------------------
   Tat profili karti
   -------------------------------------------------------------------------- */
.ec-taste {
	border: 1px solid var(--ec-line);
	padding: 22px 24px;
	background: #fbf9f4;
}

.ec-taste__label {
	margin: 0 0 16px;
	font-size: 11px;
	letter-spacing: 2.4px;
	color: var(--ec-muted);
}

.ec-taste__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
}

.ec-taste__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	text-align: center;
	padding: 18px 10px;
	border: 1px solid var(--ec-line);
	margin-left: -1px;
}

.ec-taste__item:first-child {
	margin-left: 0;
}

.ec-taste__icon {
	width: 40px;
	height: 40px;
	color: var(--ec-tan);
}

.ec-taste__icon svg {
	width: 100%;
	height: 100%;
}

.ec-taste__name {
	font-size: 13px;
	color: var(--ec-ink);
}

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

/* --------------------------------------------------------------------------
   Varyasyon formu: gramaj + ogutme cipleri
   -------------------------------------------------------------------------- */
.ec-product .variations_form,
.ec-product form.cart {
	margin: 0;
}

.ec-product .variations {
	width: 100%;
	border: 0;
	margin: 0 0 4px;
}

.ec-product .variations tr {
	display: block;
	margin-bottom: 18px;
}

.ec-product .variations th,
.ec-product .variations td {
	display: block;
	border: 0;
	padding: 0;
	text-align: left;
}

.ec-product .variations .label label {
	font-size: 14px;
	font-weight: 500;
	color: var(--ec-ink);
	margin-bottom: 10px;
	display: block;
}

.ec-product .variations select {
	display: none !important;
}

/* Cip listesi */
.ec-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ec-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1px solid var(--ec-line);
	background: #fff;
	color: var(--ec-ink);
	font-size: 13.5px;
	font-family: var(--ec-sans);
	cursor: pointer;
	transition: all .18s ease;
	line-height: 1;
}

.ec-swatch:hover {
	border-color: var(--ec-dark);
}

.ec-swatch.is-selected {
	background: var(--ec-dark);
	border-color: var(--ec-dark);
	color: #fff;
}

.ec-swatch.is-disabled {
	opacity: .35;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Ogutme cipleri: secili olanda bas harfte tik isareti */
.ec-swatch--grind .ec-swatch__check {
	display: none;
	font-size: 12px;
	line-height: 1;
}
.ec-swatch--grind.is-selected .ec-swatch__check {
	display: inline-block;
}

.ec-swatch__dot {
	width: 12px;
	height: 12px;
	border: 1px solid currentColor;
	border-radius: 50%;
	display: inline-block;
}

/* Adet + sepete ekle */
.ec-product .woocommerce-variation-add-to-cart,
.ec-product .ec-atc-row {
	display: flex;
	gap: 14px;
	align-items: stretch;
}

.ec-product .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--ec-line);
	background: #fff;
}

.ec-product .quantity input.qty {
	width: 46px;
	height: 52px;
	border: 0;
	text-align: center;
	font-size: 16px;
	background: transparent;
	-moz-appearance: textfield;
}

.ec-product .quantity input.qty::-webkit-outer-spin-button,
.ec-product .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.ec-product .ec-qty-btn {
	width: 46px;
	height: 52px;
	border: 0;
	background: transparent;
	color: var(--ec-ink);
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ec-product .ec-qty-btn:hover {
	color: var(--ec-tan);
}

.ec-product .single_add_to_cart_button,
.ec-product button.button.alt,
.ec-product .single_add_to_cart_button.button.alt {
	background: var(--ec-dark) !important;
	background-color: var(--ec-dark) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	flex: 1 1 auto;
	padding: 16px 26px !important;
	font-family: var(--ec-sans) !important;
	font-size: 13px !important;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ec-product .single_add_to_cart_button:hover {
	background: #000;
}

.ec-product .single_add_to_cart_button.disabled,
.ec-product .single_add_to_cart_button:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.ec-product .woocommerce-variation-price,
.ec-product .woocommerce-variation-availability {
	font-size: 14px;
	color: var(--ec-muted);
}

/* --------------------------------------------------------------------------
   Guven seridi
   -------------------------------------------------------------------------- */
.ec-trust {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.ec-trust li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--ec-muted);
}

.ec-trust__ico {
	color: var(--ec-ink);
}

.ec-trust__ico svg {
	width: 26px;
	height: 26px;
}

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

/* --------------------------------------------------------------------------
   Bilgi bandi
   -------------------------------------------------------------------------- */
.ec-info-band {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	max-width: none;
	margin: 0;
}

.ec-info-band__card {
	position: relative;
	min-height: 300px;
	padding: 30px 34px;
	background-color: #2a231b;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	overflow: hidden;
}

.ec-info-band__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(18, 15, 12, .25) 0%, rgba(18, 15, 12, .55) 55%, rgba(18, 15, 12, .92) 100%);
	z-index: 1;
}

.ec-info-band__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ec-info-band__card::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 3px;
	background: var(--ec-accent, #b08a57);
	z-index: 3;
}

.ec-info-band__eyebrow {
	margin: 0;
	font-size: 11px;
	letter-spacing: 2.6px;
	color: rgba(255, 255, 255, .65);
}

.ec-info-band__title {
	margin: 0;
	font-family: var(--ec-serif);
	font-size: 26px;
	font-weight: 600;
	color: #fff;
}

.ec-info-band__text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .78);
	max-width: 340px;
}

@media (max-width: 767px) {
	.ec-info-band {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Sekmeler
   -------------------------------------------------------------------------- */
.ec-tabs {
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 40px;
	background: #fbf9f4;
}

.ec-tabs__nav {
	display: flex;
	gap: 34px;
	border-bottom: 1px solid var(--ec-line);
	margin-bottom: 32px;
	flex-wrap: wrap;
}

.ec-tabs__btn {
	border: 0;
	background: transparent;
	padding: 0 0 16px;
	font-family: var(--ec-sans);
	font-size: 12px;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--ec-muted);
	cursor: pointer;
	position: relative;
}

.ec-tabs__btn.is-active {
	color: var(--ec-dark);
}

.ec-tabs__btn.is-active::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--ec-dark);
}

.ec-tabs__panel {
	display: none;
}

.ec-tabs__panel.is-active {
	display: block;
}

.ec-tabs__two {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}

.ec-tabs__heading {
	font-family: var(--ec-serif);
	font-size: 30px;
	font-weight: 600;
	margin: 0 0 18px;
	color: var(--ec-dark);
}

.ec-tabs__rich {
	font-size: 15px;
	line-height: 1.85;
	color: var(--ec-muted);
}

.ec-tabs__lead {
	font-size: 15px;
	color: var(--ec-muted);
}

/* Ozellik tablosu */
.ec-spec {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.ec-spec th,
.ec-spec td {
	border: 1px solid var(--ec-line);
	padding: 11px 14px;
	text-align: left;
	vertical-align: top;
}

.ec-spec th {
	width: 42%;
	background: #f4f1ea;
	color: var(--ec-muted);
	font-weight: 400;
}

.ec-spec__ico {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -3px;
	color: var(--ec-tan);
}

.ec-spec__ico svg {
	width: 100%;
	height: 100%;
}

.ec-spec td {
	color: var(--ec-ink);
	background: #fff;
}

@media (max-width: 1023px) {
	.ec-tabs__two {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.ec-tabs {
		padding: 36px 20px;
	}
}

/* --------------------------------------------------------------------------
   Bunlari da Sevebilirsiniz
   -------------------------------------------------------------------------- */
.ec-related {
	max-width: 1240px;
	margin: 0 auto;
	padding: 56px 40px 72px;
}

.ec-related__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.ec-related__title {
	font-family: var(--ec-serif);
	font-size: 32px;
	font-weight: 600;
	margin: 0;
	color: var(--ec-dark);
}

.ec-related__all {
	font-size: 12.5px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--ec-ink);
	text-decoration: none;
	white-space: nowrap;
}

.ec-related__track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 26px;
}

.ec-related__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: var(--ec-ink);
	position: relative;
}

.ec-related__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	background: #e9e3d7;
	overflow: hidden;
}

.ec-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ec-related__name {
	font-family: var(--ec-serif);
	font-size: 21px;
	font-weight: 600;
	color: var(--ec-dark);
}

.ec-related__meta {
	font-size: 12.5px;
	color: var(--ec-muted);
}

.ec-related__price {
	font-size: 17px;
	font-weight: 500;
	color: var(--ec-dark);
	margin-top: auto;
}

.ec-related__cart {
	position: absolute;
	right: 12px;
	bottom: 4px;
	width: 38px;
	height: 38px;
	background: var(--ec-dark);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ec-related__cart svg {
	width: 18px;
	height: 18px;
}

@media (max-width: 1023px) {
	.ec-related__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.ec-related {
		padding: 40px 20px 56px;
	}

	.ec-related__title {
		font-size: 24px;
	}
}

/* --------------------------------------------------------------------------
   Genel WooCommerce düzeltmeleri
   -------------------------------------------------------------------------- */
.ec-product .woocommerce-message,
.ec-product .woocommerce-info {
	background: #fbf9f4;
	border-top-color: var(--ec-tan);
	color: var(--ec-ink);
}

.ec-product .woocommerce-notices-wrapper {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 40px;
}

.ec-product .star-rating span::before,
.ec-product .star-rating::before {
	color: var(--ec-tan);
}