/*
	Theme Name:     Joice Child
	Theme URI:      http://www.enovathemes.com/joice
	Description:    Joice - Jewelry & Watches WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.0
	Template:       joice
*/

/* =Theme customization starts here
-------------------------------------------------------------- */


/* TWB: ürün adları (marka/model) büyük harfe çevrilmesin — Türkçe İ sorununu da önler */
.single-product .product_title,
.woocommerce-loop-product__title,
.product .post-title,
.et-product .post-title,
.product .post-title a,
ul.products .post-title a { text-transform: none; }

/* TWB: ürün sayfası — geniş ekranda "Ürün bilgisi" sağda dar bir sütun, daha dar ekranda özetin altında */
@media only screen and (min-width: 768px) {
	.product .single-product-wrapper .summary { flex-direction: column; align-items: stretch; }
	.product .single-product-wrapper .summary > .summary-details:first-child,
	.product .single-product-wrapper .summary > .summary-details:last-child { width: 100%; max-width: 560px; margin-left: 0; }
	.product .single-product-wrapper .summary > .summary-details + .summary-details { margin-top: 32px !important; }
}
@media only screen and (min-width: 1200px) {
	.product .single-product-wrapper .summary { flex-direction: row; align-items: flex-start; gap: 32px; padding-left: 24px; }
	.product .single-product-wrapper .summary > .summary-details:first-child { flex: 1 1 auto; min-width: 0; max-width: 520px; }
	.product .single-product-wrapper .summary > .summary-details:last-child:not(:only-child) { flex: 0 0 300px; width: 300px; position: sticky; top: 110px; }
	.product .single-product-wrapper .summary > .summary-details + .summary-details { margin-top: 0 !important; }
}
@media only screen and (min-width: 1500px) {
	.product .single-product-wrapper .summary > .summary-details:last-child:not(:only-child) { flex-basis: 340px; width: 340px; }
}

/* TWB: ürün bilgisi tablosu — daha derli toplu */
.product .summary .summary-details .et-accordion .accordion-title { padding: 14px 18px; font-size: 14px; }
.product .summary .summary-details .accordion-content.info { padding: 0; }
.product .summary .shop_attributes { margin: 0; font-size: 13px; }
.product .summary .shop_attributes th,
.product .summary .shop_attributes td { padding: 9px 14px; line-height: 1.4; vertical-align: top; }
.product .summary .shop_attributes th { width: 45%; font-weight: 400; color: #555; }
.product .summary .shop_attributes td p { margin: 0; }

/* TWB: ürün galerisi okları */
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery .flex-viewport { cursor: zoom-in; }
.woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.woocommerce-product-gallery .flex-direction-nav li { margin: 0; }
.woocommerce-product-gallery .flex-direction-nav a { position: absolute; z-index: 5; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.12); font-size: 0; color: transparent; opacity: .85; transition: opacity .15s, background .15s; }
.woocommerce-product-gallery .flex-direction-nav a:hover { opacity: 1; background: #fff; }
.woocommerce-product-gallery .flex-direction-nav a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border: solid #111; border-width: 0 2px 2px 0; transform: translate(-65%, -50%) rotate(-45deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-prev::before { transform: translate(-35%, -50%) rotate(135deg); }
.woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: 0; pointer-events: none; }

/* TWB: tam ekran galeri */
html.twb-lb-lock { overflow: hidden; }
.twb-lb { position: fixed; inset: 0; z-index: 100000; display: none; flex-direction: column; background: rgba(12,12,12,.96); color: #fff; }
.twb-lb.is-open { display: flex; }
.twb-lb__stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 56px 72px 12px; }
.twb-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.twb-lb button { -webkit-appearance: none; appearance: none; border: 0; padding: 0; margin: 0; background: none; cursor: pointer; min-height: 0; height: auto; box-shadow: none; }
.twb-lb .twb-lb__close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 44px; height: 44px; }
.twb-lb__close::before, .twb-lb__close::after { content: ""; position: absolute; left: 11px; top: 21px; width: 22px; height: 2px; background: #fff; transform: rotate(45deg); }
.twb-lb__close::after { transform: rotate(-45deg); }
.twb-lb .twb-lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: rgba(255,255,255,.12); transition: background .15s; }
.twb-lb .twb-lb__nav:hover { background: rgba(255,255,255,.25); }
.twb-lb__nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-65%, -50%) rotate(-45deg); }
.twb-lb__nav--prev { left: 14px; }
.twb-lb__nav--next { right: 14px; }
.twb-lb__nav--prev::before { transform: translate(-35%, -50%) rotate(135deg); }
.twb-lb__count { text-align: center; font-size: 12px; letter-spacing: .1em; opacity: .7; padding: 4px 0 8px; }
.twb-lb__thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 0 16px 16px; scrollbar-width: thin; }
.twb-lb .twb-lb__thumb { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 4px; overflow: hidden; opacity: .45; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .15s, outline-color .15s; }
.twb-lb .twb-lb__thumb:hover { opacity: .8; }
.twb-lb .twb-lb__thumb.is-active { opacity: 1; outline-color: #fff; }
.twb-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.twb-lb.is-single .twb-lb__nav, .twb-lb.is-single .twb-lb__thumbs, .twb-lb.is-single .twb-lb__count { display: none; }
@media (max-width: 600px) {
	.twb-lb__stage { padding: 56px 8px 8px; }
	.twb-lb .twb-lb__nav { width: 40px; height: 40px; margin-top: -20px; background: rgba(0,0,0,.45); }
	.twb-lb__nav--prev { left: 6px; }
	.twb-lb__nav--next { right: 6px; }
	.twb-lb .twb-lb__thumb { width: 52px; height: 52px; }
}

/* TWB: varyasyon satırı — etiket üstte, seçenekler altta yan yana */
.product .summary table.variations tr { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 20px; }
.product .summary table.variations th { min-width: 0; }
.product .summary table.variations th label { font-weight: 600; font-size: 14px; }
.product .summary table.variations td { width: 100%; align-items: stretch; }
.product .summary table.variations .reset_variations { position: static; transform: none; margin-top: 10px; }

/* TWB: ürün bilgisi değerleri filtre linki */
.shop_attributes .twb-attr-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(0,0,0,.25); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.shop_attributes .twb-attr-link:hover { color: #111; text-decoration-color: currentColor; }

/* TWB: anasayfa kayan yazı bandı */
.twb-marquee { overflow: hidden; background: #111; color: #fff; padding: 22px 0; }
.twb-marquee__track { display: flex; width: max-content; animation: twb-marquee 40s linear infinite; }
.twb-marquee__track span { flex: 0 0 auto; padding: 0 28px; font-size: clamp(16px, 2vw, 24px); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.twb-marquee__track span:nth-child(even) { color: var(--color-primary, #c9a236); }
.twb-marquee__track span::after { content: "✦"; margin-left: 56px; font-size: .6em; vertical-align: middle; color: #fff; opacity: .5; }
.twb-marquee:hover .twb-marquee__track { animation-play-state: paused; }
@keyframes twb-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .twb-marquee__track { animation: none; } }

/* TWB: anasayfa slaytı temanın başlık fontunu kullansın */
.elementor-slides .elementor-slide-heading { font-family: inherit; font-weight: 400; letter-spacing: .02em; line-height: 1.15; }
.elementor-slides .swiper-slide-contents { font-family: Caslon, serif; }
.elementor-slides .elementor-slide-button { font-family: var(--main-font, inherit); font-size: 12px; letter-spacing: .12em; font-weight: 400; }
