/* PETORA V12 – Premium visual/UX layer
 * Scope: presentation and progressive enhancement only.
 * Payment, cart, order, token and callback code is intentionally untouched.
 */
:root{
  --p12-green:#0b5d45;
  --p12-green-dark:#073f31;
  --p12-green-soft:#edf7f2;
  --p12-orange:#ef6a22;
  --p12-orange-soft:#fff2e9;
  --p12-ink:#15231e;
  --p12-text:#30443b;
  --p12-muted:#6d7d75;
  --p12-line:#dde8e2;
  --p12-bg:#f7faf8;
  --p12-card:#fff;
  --p12-shadow:0 18px 50px rgba(8,58,44,.09);
  --p12-shadow-lg:0 28px 76px rgba(8,58,44,.14);
  --p12-radius:20px;
}

/* Global polish */
body.petora-v12-ready{background:#fff;color:var(--p12-text)}
body.petora-v12-ready a,body.petora-v12-ready button{transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease,color .2s ease}
body.petora-v12-ready img{max-width:100%}
body.petora-v12-ready ::selection{background:#cce7da;color:var(--p12-green-dark)}
body.petora-v12-ready :focus-visible{outline:3px solid rgba(239,106,34,.28)!important;outline-offset:3px!important}

/* Header refinement without changing markup/actions */
body.petora-v12-ready .header-main,body.petora-v12-ready .header-main-div,body.petora-v12-ready header{backdrop-filter:saturate(135%) blur(10px)}
body.petora-v12-ready.petora-v12-scrolled .header-main,body.petora-v12-ready.petora-v12-scrolled .header-main-div{box-shadow:0 10px 34px rgba(9,54,42,.09)!important}
body.petora-v12-ready .header-search-main input,body.petora-v12-ready .search-input,body.petora-v12-ready input[name="q"]{border-radius:14px!important}

/* Product/category cards */
body.petora-v12-ready .urunler-module-grid-box,body.petora-v12-ready .cat-detail-products-box{
  border:1px solid #e3ece7!important;border-radius:18px!important;background:#fff!important;
  box-shadow:0 7px 24px rgba(8,54,42,.045)!important;overflow:hidden!important;
}
body.petora-v12-ready .urunler-module-grid-box:hover,body.petora-v12-ready .cat-detail-products-box:hover{
  transform:translateY(-4px);border-color:#c6dacf!important;box-shadow:0 18px 40px rgba(8,54,42,.105)!important;
}
body.petora-v12-ready .urunler-module-grid-box img,body.petora-v12-ready .cat-detail-products-box img{transition:transform .35s ease;transform-origin:center}
body.petora-v12-ready .urunler-module-grid-box:hover img,body.petora-v12-ready .cat-detail-products-box:hover img{transform:scale(1.025)}
body.petora-v12-ready .urunler-module-grid-box-title,body.petora-v12-ready .cat-detail-products-box-h{color:var(--p12-ink)!important;font-weight:850!important;line-height:1.35!important}
body.petora-v12-ready .urunler-module-grid-box-price,body.petora-v12-ready .cat-detail-products-box-price{color:var(--p12-green-dark)!important;font-weight:950!important}

/* Catalogue left rail / filters */
body.petora-v12-ready.petora-v12-page-catalog .cat-detail-left,body.petora-v12-ready.petora-v12-page-catalog .category-left-bar-main{
  border:1px solid var(--p12-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 32px rgba(8,54,42,.055)!important;
}
body.petora-v12-ready.petora-v12-page-catalog .cat-detail-main-div-in{align-items:flex-start}
body.petora-v12-ready.petora-v12-page-catalog .cat-detail-filter-select,body.petora-v12-ready.petora-v12-page-catalog select{border-radius:12px!important;border-color:#d7e4de!important}

/* Product detail – premium split layout */
body.petora-v12-ready.petora-v12-page-product .urun-detay-main{background:linear-gradient(180deg,#fbfdfc 0,#fff 420px)!important}
body.petora-v12-ready.petora-v12-page-product .urun-detay-main-in{gap:24px!important;align-items:flex-start!important}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sol-alan{
  border:1px solid var(--p12-line)!important;border-radius:22px!important;background:#fff!important;box-shadow:var(--p12-shadow)!important;padding:14px!important;
}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan{
  border:1px solid var(--p12-line)!important;border-radius:22px!important;box-shadow:var(--p12-shadow)!important;padding:22px!important;background:#fff!important;
}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-baslik{font-size:clamp(24px,2.3vw,36px)!important;line-height:1.08!important;letter-spacing:-.035em!important;font-weight:950!important;color:var(--p12-ink)!important}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-spot{color:var(--p12-muted)!important;line-height:1.65!important}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-d-bilgiler,body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-ek-bilgiler{gap:8px!important}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-d-bilgiler-box,body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-ek-bilgiler-box{
  border:1px solid #e0eae5!important;border-radius:11px!important;background:#f9fcfa!important;color:#476057!important;
}
body.petora-v12-ready.petora-v12-page-product .product-detail-variant-div{border-radius:14px!important}
body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-urun-islemler-main a{border-radius:12px!important}
body.petora-v12-ready.petora-v12-page-product .gc-display-container,body.petora-v12-ready.petora-v12-page-product .gc-display-area{border-radius:16px!important;background:#fff!important}
body.petora-v12-ready.petora-v12-page-product .gc-thumbs-area .gc-thumb-container{border-radius:11px!important;overflow:hidden!important;border-color:#dfe8e4!important}
body.petora-v12-ready.petora-v12-page-product .gc-thumbs-area .gc-selected{border-color:var(--p12-green)!important}

/* Gallery count chip inserted by JS */
.petora-v12-gallery-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:8px 10px;border-radius:12px;background:#f4f9f6;color:var(--p12-muted);font-size:10px;font-weight:800}
.petora-v12-gallery-meta strong{color:var(--p12-green-dark);font-weight:950}
.petora-v12-gallery-meta i{color:var(--p12-orange)}

/* V12 product shopping assistant */
.petora-v12-product-assist{margin-top:14px;border:1px solid var(--p12-line);border-radius:16px;background:linear-gradient(135deg,#f7fbf9,#fff8f2);overflow:hidden}
.petora-v12-product-assist__top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #e6eee9}
.petora-v12-product-assist__top strong{display:block;color:var(--p12-ink);font-size:12px;font-weight:950}
.petora-v12-product-assist__top small{display:block;margin-top:2px;color:var(--p12-muted);font-size:9px;line-height:1.45}
.petora-v12-product-assist__badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;padding:6px 8px;border-radius:999px;background:#fff;color:var(--p12-green);box-shadow:0 3px 12px rgba(8,58,44,.07);font-size:8px;font-weight:950}
.petora-v12-product-assist__grid{display:grid;grid-template-columns:repeat(3,1fr)}
.petora-v12-product-assist__item{display:flex;align-items:center;gap:8px;min-height:58px;padding:10px 12px;color:var(--p12-text)!important;text-decoration:none!important;border-right:1px solid #e6eee9}
.petora-v12-product-assist__item:last-child{border-right:0}
.petora-v12-product-assist__item i{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#fff;color:var(--p12-green);font-size:15px;box-shadow:0 4px 14px rgba(8,58,44,.07)}
.petora-v12-product-assist__item span{display:block;font-size:9px;font-weight:900;line-height:1.25}.petora-v12-product-assist__item small{display:block;margin-top:2px;color:var(--p12-muted);font-size:8px;font-weight:600}
.petora-v12-product-assist__item:hover{background:rgba(255,255,255,.65);color:var(--p12-green)!important}

/* Home: V12 guided shopping */
.petora-v12-guide{padding:8px 0 34px;background:#fff}
.petora-v12-guide__in{width:min(1180px,calc(100% - 36px));margin:0 auto}
.petora-v12-guide__head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:14px}
.petora-v12-guide__eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:5px;color:var(--p12-orange);font-size:9px;font-weight:950;letter-spacing:.12em}
.petora-v12-guide__head h2{margin:0;color:var(--p12-ink);font-size:clamp(24px,2.7vw,38px);font-weight:950;letter-spacing:-.04em;line-height:1.06}
.petora-v12-guide__head p{max-width:600px;margin:7px 0 0;color:var(--p12-muted);font-size:11px;line-height:1.65}
.petora-v12-guide__all{display:inline-flex;align-items:center;gap:7px;color:var(--p12-green)!important;font-size:10px;font-weight:950;text-decoration:none!important;white-space:nowrap}
.petora-v12-guide__grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:12px}
.petora-v12-guide__card{position:relative;min-height:250px;border-radius:20px;overflow:hidden;background:#e9f2ee;isolation:isolate;box-shadow:0 12px 34px rgba(7,52,40,.08);text-decoration:none!important}
.petora-v12-guide__card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .55s ease}
.petora-v12-guide__card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(3,23,17,.03) 22%,rgba(3,23,17,.84) 100%)}
.petora-v12-guide__card:first-child{grid-row:span 1;min-height:250px}
.petora-v12-guide__copy{position:absolute;left:0;right:0;bottom:0;padding:18px;color:#fff}
.petora-v12-guide__copy small{display:block;margin-bottom:5px;color:#d9ede4;font-size:8px;font-weight:950;letter-spacing:.11em}
.petora-v12-guide__copy strong{display:block;max-width:280px;color:#fff;font-size:20px;line-height:1.08;font-weight:950;letter-spacing:-.025em}
.petora-v12-guide__copy span{display:block;margin-top:6px;color:rgba(255,255,255,.78);font-size:9px;line-height:1.45}
.petora-v12-guide__cta{display:inline-flex!important;align-items:center;gap:6px;margin-top:10px!important;padding:7px 9px;border-radius:9px;background:#fff;color:var(--p12-green-dark)!important;font-size:8px!important;font-weight:950!important;width:max-content}
.petora-v12-guide__card:hover img{transform:scale(1.045)}
.petora-v12-guide__card:hover{transform:translateY(-3px);box-shadow:0 22px 50px rgba(7,52,40,.13)}

/* Checkout is visual-only: no form/action changes */
body.petora-v12-ready.petora-v12-page-checkout .cart-left-div,body.petora-v12-ready.petora-v12-page-checkout .cart-right-div,body.petora-v12-ready.petora-v12-page-checkout .teslimat-form-area,body.petora-v12-ready.petora-v12-page-checkout .ccard-payment-page-main>div{
  border-radius:18px!important;border-color:#dce8e2!important;background:#fff!important;box-shadow:0 14px 40px rgba(8,58,44,.07)!important
}
body.petora-v12-ready.petora-v12-page-checkout input,body.petora-v12-ready.petora-v12-page-checkout select,body.petora-v12-ready.petora-v12-page-checkout textarea{border-radius:11px!important;border-color:#d8e4de!important}
body.petora-v12-ready.petora-v12-page-checkout .button-blue,body.petora-v12-ready.petora-v12-page-checkout .button-green{border-radius:12px!important;font-weight:900!important}

/* Footer/cards/forms */
body.petora-v12-ready .html-page-main,body.petora-v12-ready .faq-main-div,body.petora-v12-ready .contact-main-div,body.petora-v12-ready .user_subpage_account_content{border-radius:20px!important}
body.petora-v12-ready .footer-module-main-div{border-top:1px solid rgba(255,255,255,.06)}

/* Progressive reveal */
body.petora-v12-ready [data-petora-v12-reveal]{opacity:0;transform:translateY(12px);transition:opacity .5s ease,transform .5s ease}
body.petora-v12-ready [data-petora-v12-reveal].is-visible{opacity:1;transform:none}

@media(min-width:1101px){
  body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan{position:sticky;top:18px}
}
@media(max-width:1100px){
  .petora-v12-guide__grid{grid-template-columns:1fr 1fr}
  .petora-v12-product-assist__grid{grid-template-columns:1fr 1fr}
  .petora-v12-product-assist__item:nth-child(2){border-right:0}.petora-v12-product-assist__item:nth-child(-n+2){border-bottom:1px solid #e6eee9}
  .petora-v12-product-assist__item:last-child{grid-column:1/-1}
}
@media(max-width:767px){
  .petora-v12-guide{padding:4px 0 22px}.petora-v12-guide__in{width:calc(100% - 24px)}
  .petora-v12-guide__head{align-items:flex-start;flex-direction:column;gap:8px}.petora-v12-guide__head h2{font-size:28px}.petora-v12-guide__all{display:none}
  .petora-v12-guide__grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:5px;scrollbar-width:none}.petora-v12-guide__grid::-webkit-scrollbar{display:none}
  .petora-v12-guide__card{flex:0 0 78%;min-height:235px;scroll-snap-align:start}
  body.petora-v12-ready.petora-v12-page-product .urun-detay-sol-alan,body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan{border-radius:16px!important;padding:12px!important;box-shadow:0 10px 30px rgba(8,58,44,.06)!important}
  body.petora-v12-ready.petora-v12-page-product .urun-detay-sag-alan-baslik{font-size:24px!important}
  .petora-v12-product-assist__top{align-items:flex-start;flex-direction:column}.petora-v12-product-assist__badge{white-space:normal}
}
@media(max-width:480px){
  .petora-v12-guide__card{flex-basis:86%}
  .petora-v12-product-assist__grid{grid-template-columns:1fr}.petora-v12-product-assist__item,.petora-v12-product-assist__item:nth-child(2){border-right:0;border-bottom:1px solid #e6eee9}.petora-v12-product-assist__item:last-child{grid-column:auto;border-bottom:0}
}
@media(prefers-reduced-motion:reduce){
  body.petora-v12-ready [data-petora-v12-reveal]{opacity:1!important;transform:none!important;transition:none!important}
  body.petora-v12-ready .urunler-module-grid-box:hover img,body.petora-v12-ready .cat-detail-products-box:hover img,.petora-v12-guide__card:hover img{transform:none!important}
}
