/* Tatkur's product page follows the existing green/light palette. */
.woocommerce-shell:has(.tpx-product) { max-width: none; }
.tpx-product { --tpx-cream: #f7f9f3; --tpx-border: #dbe6d4; --tpx-shadow: 0 16px 44px rgba(16,54,30,.09); color: var(--green-950); }
.tpx-product::before, .tpx-product::after { display: none !important; }
.tpx-breadcrumbs { margin: -32px 0 24px; }
.tpx-breadcrumbs .woocommerce-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; color: #5b6d5d; font-size: 13px; }
.tpx-breadcrumbs .woocommerce-breadcrumb a { color: var(--green-700); font-weight: 700; }
.tpx-breadcrumbs .woocommerce-breadcrumb a:hover { text-decoration: underline; }
.tpx-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: start; gap: clamp(24px, 4vw, 56px); }
.tpx-media, .tpx-purchase { min-width: 0; }
.tpx-gallery-card { position: relative; overflow: hidden; border: 1px solid var(--tpx-border); border-radius: 26px; background: var(--tpx-cream); box-shadow: var(--tpx-shadow); }
.tpx-gallery-card .onsale { z-index: 2; top: 18px; left: 18px; right: auto; margin: 0; padding: 7px 13px; border-radius: 999px; background: var(--green-900); color: #fff; font-size: 13px; }
.tpx-gallery-card .woocommerce-product-gallery, .tpx-gallery-card .images { position: relative !important; width: 100% !important; float: none !important; margin: 0 !important; opacity: 1 !important; transition: none !important; }
.tpx-gallery-card .woocommerce-product-gallery__wrapper { margin: 0; }
.tpx-gallery-card .woocommerce-product-gallery__image { display: grid; place-items: center; min-height: 520px; background: linear-gradient(145deg, #fbfcf8, #edf3e7); }
.tpx-gallery-card .woocommerce-product-gallery__image a { display: grid; place-items: center; width: 100%; }
.tpx-gallery-card .woocommerce-product-gallery__image img { display: block; width: 100% !important; height: min(63vw, 620px) !important; max-height: 620px; padding: clamp(20px, 5vw, 56px); object-fit: contain; border-radius: 0 !important; background: transparent !important; }
.tpx-gallery-card .woocommerce-product-gallery__trigger { position: absolute !important; z-index: 3; top: 18px !important; right: 18px !important; left: auto !important; display: grid; place-items: center; width: 44px !important; height: 44px !important; min-width: 44px; min-height: 44px; border: 1px solid var(--tpx-border); border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(16,54,30,.1); }
.tpx-gallery-card .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px !important; margin: 0 !important; border-top: 1px solid var(--tpx-border); background: #fff; }
.tpx-gallery-card .flex-control-thumbs li { float: none !important; width: 68px !important; }
.tpx-gallery-card .flex-control-thumbs img { width: 68px; height: 68px; object-fit: cover; border: 1px solid var(--tpx-border); border-radius: 10px !important; }
.tpx-photo-note { display: flex; align-items: center; gap: 8px; padding: 14px 4px 0; color: #566c58; font-size: 13px; }
.tpx-photo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-700); }
.tpx-purchase-card { padding: clamp(24px, 3vw, 38px); border: 1px solid var(--tpx-border); border-radius: 26px; background: var(--white); box-shadow: var(--tpx-shadow); }
.tpx-eyebrow { margin: 0; color: var(--green-700); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.tpx-eyebrow span { padding: 0 5px; }
.tpx-product .tpx-title { margin: 12px 0 10px; color: var(--green-950); font-size: clamp(32px, 3.2vw, 46px); font-weight: 760; letter-spacing: -.045em; line-height: 1.08; }
.tpx-categories { color: #526552; font-size: 14px; }
.tpx-categories a { color: var(--green-700); font-weight: 700; }
.tpx-categories a:hover { text-decoration: underline; }
.tpx-rating { margin: 14px 0 0; }
.tpx-rating .woocommerce-product-rating { margin: 0 !important; }
.tpx-rating .star-rating { color: #a66a21; }
.tpx-lead { margin: 20px 0 0; color: #425447; font-size: 16px; line-height: 1.65; }
.tpx-lead p { margin: 0; }
.tpx-price-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; margin: 24px 0 0; border-top: 1px solid var(--tpx-border); border-bottom: 1px solid var(--tpx-border); }
.tpx-price-row small { display: block; margin-bottom: 2px; color: #617262; font-size: 13px; }
.tpx-price { color: var(--green-900); font-size: clamp(27px, 2.8vw, 36px); font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tpx-price del { display: inline-block; margin-right: 8px; color: #718171; font-size: 16px; font-weight: 500; }
.tpx-price ins { text-decoration: none; }
.tpx-stock { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; color: #1c653c; background: #e4f3e7; font-size: 13px; font-weight: 750; }
.tpx-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tpx-stock.is-out-of-stock { color: #8b3c32; background: #f8eae7; }
.tpx-order-area { padding-top: 22px; }
.tpx-order-area form.cart { display: flex; align-items: stretch; gap: 12px; margin: 0 !important; }
.tpx-order-area form.cart::before, .tpx-order-area form.cart::after { display: none !important; }
.tpx-order-area form.cart.variations_form { display: block; }
.tpx-order-area .variations { width: 100%; margin: 0 0 18px !important; border: 0; }
.tpx-order-area .variations tbody, .tpx-order-area .variations tr, .tpx-order-area .variations th, .tpx-order-area .variations td { display: block; width: 100%; text-align: left; padding: 0; border: 0; }
.tpx-order-area .variations label { display: block; margin-bottom: 9px; font-weight: 650; font-size: 15px; color: var(--green-950); }
.tpx-order-area .variations select { min-height: 48px; width: 100%; max-width: 100% !important; margin: 0 !important; padding: 12px 14px; border: 1px solid #aec9a9; border-radius: 10px; background: #f8faf5; font: inherit; }
.tpx-order-area .reset_variations { display: inline-block; min-height: 36px; padding-top: 10px; color: var(--green-900); font-size: 13px; text-decoration: underline; }
.tpx-order-area .woocommerce-variation { padding-bottom: 12px; }
.tpx-order-area .woocommerce-variation-price .price { color: var(--green-900); font-size: 24px; font-weight: 750; }
.tpx-order-area .woocommerce-variation-price:not(:empty)::before { content: 'Seçilen seçenek fiyatı'; display: block; font-size: 13px; color: #617262; margin-bottom: 4px; }
.tpx-order-area .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: stretch; }
.tpx-order-area .quantity { float: none !important; margin: 0 !important; }
.woocommerce-shell .tpx-order-area .quantity .qty { width: 78px; height: 52px; min-height: 52px; padding: 8px !important; border: 1px solid #aec9a9; border-radius: 10px; background: #fff; color: var(--green-950); text-align: center; font-size: 17px; font-weight: 700; }
.woocommerce-shell .tpx-order-area .single_add_to_cart_button { flex: 1; min-width: 0; min-height: 52px; margin: 0 !important; border: 0; border-radius: 10px; background: var(--green-700) !important; color: #fff !important; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.woocommerce-shell .tpx-order-area .single_add_to_cart_button:hover { background: var(--green-900) !important; transform: translateY(-1px); }
.woocommerce-shell .tpx-order-area .single_add_to_cart_button:active { transform: translateY(0); }
.woocommerce-shell .tpx-order-area .single_add_to_cart_button:focus-visible, .tpx-whatsapp:focus-visible, .tpx-details summary:focus-visible { outline: 3px solid #a2ca7b; outline-offset: 3px; }
.tpx-order-hint { margin: 12px 0 0; color: #526552; font-size: 13px; line-height: 1.5; }
.tpx-whatsapp { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 11px 14px; margin-top: 22px; border: 1px solid #a8cdb5; border-radius: 10px; color: #155f3e; background: #eef8f1; font-size: 15px; font-weight: 800; transition: background .2s ease, border-color .2s ease; }
.tpx-whatsapp:hover { border-color: #5d9f74; background: #e2f4e8; }
.tpx-whatsapp svg { flex: none; }
.tpx-whatsapp small { margin-left: auto; color: #3c6950; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tpx-shipping-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 14px; border: 1px solid var(--tpx-border); border-radius: 18px; background: #f5f9f1; }
.tpx-shipping-card > div { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 82px; padding: 12px 14px; }
.tpx-shipping-card > div + div { border-left: 1px solid var(--tpx-border); }
.tpx-shipping-card strong { color: var(--green-900); font-size: 17px; font-variant-numeric: tabular-nums; }
.tpx-shipping-card span { color: #526552; font-size: 12px; line-height: 1.3; }
.tpx-details { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 44px; padding: 64px 0; margin-top: 64px; border-top: 1px solid var(--tpx-border); }
.tpx-details-heading h2 { margin: 10px 0 0; color: var(--green-950); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.14; }
.tpx-details-list details { border-bottom: 1px solid var(--tpx-border); }
.tpx-details-list details:first-child { border-top: 1px solid var(--tpx-border); }
.tpx-details-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 15px 4px; color: var(--green-950); font-size: 17px; font-weight: 760; cursor: pointer; list-style: none; }
.tpx-details-list summary::-webkit-details-marker { display: none; }
.tpx-chevron { flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2px solid var(--green-700); border-bottom: 2px solid var(--green-700); transform: rotate(45deg); transition: transform .2s ease; }
.tpx-details-list details[open] .tpx-chevron { transform: rotate(225deg); }
.tpx-details-content { max-width: 70ch; padding: 0 4px 24px; color: #425447; font-size: 15px; line-height: 1.7; }
.tpx-details-content p { margin: 0 0 12px; }
.tpx-details-content p:last-child { margin-bottom: 0; }
.tpx-related { padding-top: 48px; border-top: 1px solid var(--tpx-border); }
.tpx-related .related > h2, .tpx-related .up-sells > h2 { margin: 0 0 24px; color: var(--green-950); font-size: clamp(27px, 2.5vw, 36px); }
.tpx-related .related ul.products { margin-top: 0; }
html[data-palette="light"] .tpx-product { --tpx-cream: #f8f8f1; --tpx-border: #dce1d3; }
@media (max-width: 950px) {
  .tpx-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr); gap: 22px; }
  .tpx-purchase-card { padding: 24px; }
  .tpx-gallery-card .woocommerce-product-gallery__image { min-height: 420px; }
  .tpx-gallery-card .woocommerce-product-gallery__image img { height: 500px !important; padding: 28px; }
  .tpx-whatsapp { flex-wrap: wrap; }
  .tpx-whatsapp small { width: 100%; margin: -7px 0 0 32px; }
}
@media (max-width: 760px) {
  .tpx-breadcrumbs { margin: -40px 0 20px; }
  .tpx-layout { grid-template-columns: 1fr; gap: 22px; }
  .tpx-gallery-card .woocommerce-product-gallery__image { min-height: 0; }
  .tpx-gallery-card .woocommerce-product-gallery__image img { height: min(95vw, 560px) !important; padding: clamp(18px, 6vw, 40px); }
  .tpx-purchase-card { padding: clamp(20px, 5vw, 28px); }
  .tpx-details { grid-template-columns: 1fr; gap: 22px; padding: 42px 0; margin-top: 42px; }
}
@media (max-width: 430px) {
  .tpx-shipping-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tpx-shipping-card > div { min-height: 88px; padding: 9px; }
  .tpx-shipping-card strong { font-size: 15px; }
  .tpx-shipping-card span { font-size: 11px; }
  .tpx-order-area .quantity { flex: none; }
  .woocommerce-shell .tpx-order-area .quantity .qty { width: 64px; }
  .tpx-photo-note { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tpx-chevron, .tpx-whatsapp, .woocommerce-shell .tpx-order-area .single_add_to_cart_button { transition: none; }
  .woocommerce-shell .tpx-order-area .single_add_to_cart_button:hover { transform: none; }
}
