
/* =========================================================
   FERA PREMIUM ÜRÜN SAYFASI V1.1
   Mevcut Shoptimizer / WooCommerce düzenini KORUR.
   Yeni kargo, taksit veya kampanya bilgisi EKLEMEZ.
========================================================= */

body.fera-premium-product-v2{
  --fera-ivory:#fffaf0;
  --fera-cream:#f8e9ca;
  --fera-cream-deep:#edcf93;
  --fera-gold:#b87913;
  --fera-gold-dark:#7d4f0d;
  --fera-ink:#2f2417;
  --fera-muted:#776650;
  --fera-line:rgba(126,79,13,.22);
  background:#f8ead0;
  color:var(--fera-ink);
}

body.fera-premium-product-v2 .site-content{
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.72),transparent 32%),
    linear-gradient(180deg,#fffaf0 0%,#f5dfb8 100%);
}

/* Temanın kendi genişlik sistemini bozma; sadece güvenli üst sınır */
body.fera-premium-product-v2 .site-content > .col-full{
  max-max-width:230px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-top:26px;
  padding-bottom:45px;
}

body.fera-premium-product-v2 .woocommerce-breadcrumb{
  margin-bottom:18px;
  color:#89714d;
  font-size:12px;
}

body.fera-premium-product-v2 .woocommerce-breadcrumb a{
  color:var(--fera-gold-dark);
}

/* Ana ürün alanı: mevcut float/flex/grid yapısına dokunulmaz */
body.fera-premium-product-v2 div.product{
  position:relative;
  padding:24px;
  border:1px solid var(--fera-line);
  background:rgba(255,250,240,.78);
  box-shadow:0 18px 55px rgba(89,53,8,.09);
}

body.fera-premium-product-v2 div.product::after{
  content:"";
  display:table;
  clear:both;
}

/* Galeri */
body.fera-premium-product-v2 div.product .woocommerce-product-gallery{
  padding:18px;
  border:1px solid rgba(126,79,13,.18);
  background:
    radial-gradient(circle at 50% 42%,#fffef9 0%,#fff8e9 66%,#ecd09a 100%);
  box-sizing:border-box;
}

body.fera-premium-product-v2 .woocommerce-product-gallery__image{
  background:transparent;
}

body.fera-premium-product-v2 .woocommerce-product-gallery__image img{
  width:100%!important;
  height:auto!important;
  max-height:570px;
  object-fit:contain!important;
  background:transparent!important;
}

body.fera-premium-product-v2 .flex-control-thumbs{
  display:flex!important;
  gap:9px;
  overflow-x:auto;
  margin-top:13px!important;
  scrollbar-width:none;
}

body.fera-premium-product-v2 .flex-control-thumbs::-webkit-scrollbar{
  display:none;
}

body.fera-premium-product-v2 .flex-control-thumbs li{
  flex:0 0 70px;
  max-width:230px!important;
  margin:0!important;
  padding:4px;
  border:1px solid rgba(126,79,13,.20);
  background:#fffaf0;
}

body.fera-premium-product-v2 .flex-control-thumbs img{
  max-width:230px!important;
  height:auto!important;
  object-fit:contain;
}

body.fera-premium-product-v2 .flex-control-thumbs img.flex-active{
  outline:2px solid var(--fera-gold);
  outline-offset:1px;
}

/* Ürün bilgi alanı */
body.fera-premium-product-v2 div.product .summary{
  box-sizing:border-box;
}

body.fera-premium-product-v2 div.product .product_title{
  margin-bottom:14px;
  color:var(--fera-ink);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(31px,3vw,48px);
  font-weight:500;
  line-height:1.08;
  letter-spacing:-.025em;
}

body.fera-premium-product-v2 div.product .price{
  margin-bottom:17px!important;
  color:var(--fera-gold-dark)!important;
  font-size:27px!important;
  font-weight:800!important;
}

body.fera-premium-product-v2 div.product .price del{
  color:#9b8668!important;
  font-size:17px;
  opacity:.78;
}

body.fera-premium-product-v2 div.product .price ins{
  color:var(--fera-gold-dark)!important;
  text-decoration:none;
}

body.fera-premium-product-v2 div.product .woocommerce-product-details__short-description{
  margin-bottom:17px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(126,79,13,.17);
  color:#5f503d;
  line-height:1.7;
}

/* Mevcut kısa açıklamadaki listeyi premium hale getir; metni değiştirmez */
body.fera-premium-product-v2 div.product .woocommerce-product-details__short-description ul,
body.fera-premium-product-v2 div.product .summary > ul{
  margin:12px 0 16px;
  padding:13px 16px 13px 34px;
  border:1px solid rgba(126,79,13,.17);
  background:rgba(255,250,240,.60);
}

body.fera-premium-product-v2 div.product .woocommerce-product-details__short-description li,
body.fera-premium-product-v2 div.product .summary > ul li{
  margin:5px 0;
  color:#5d4d39;
}

/* Sepete ekle: mevcut işleyiş ve HTML aynen kalır */
body.fera-premium-product-v2 div.product form.cart{
  padding:15px;
  border:1px solid rgba(126,79,13,.24);
  background:linear-gradient(145deg,#fffaf0,#eed19a);
}

body.fera-premium-product-v2 div.product form.cart input.qty{
  min-height:48px;
  border:1px solid rgba(126,79,13,.34);
  background:#fffaf0;
}

body.fera-premium-product-v2 div.product form.cart .single_add_to_cart_button{
  min-height:48px;
  border:1px solid var(--fera-gold-dark)!important;
  border-radius:0!important;
  background:linear-gradient(135deg,var(--fera-gold-dark),var(--fera-gold))!important;
  color:#fffaf0!important;
  font-weight:800!important;
  letter-spacing:.06em;
  text-transform:uppercase;
  box-shadow:0 9px 20px rgba(89,53,8,.16);
}

body.fera-premium-product-v2 div.product form.cart .single_add_to_cart_button:hover{
  background:linear-gradient(135deg,#9a610b,#cf9631)!important;
}

body.fera-premium-product-v2 div.product .product_meta{
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid rgba(126,79,13,.16);
  color:#7d6b52;
  font-size:12px;
}

body.fera-premium-product-v2 div.product .product_meta a{
  color:var(--fera-gold-dark);
}

/* Sitede halihazırda bulunan güvenli ödeme/logo alanı */
body.fera-premium-product-v2 div.product img[src*="payment"],
body.fera-premium-product-v2 div.product img[alt*="ödeme" i],
body.fera-premium-product-v2 div.product img[alt*="guven" i],
body.fera-premium-product-v2 div.product img[alt*="güven" i]{
  max-width:100%;
  height:auto;
  padding:8px;
  border:1px solid rgba(126,79,13,.16);
  background:#fffaf0;
}

/* Tabs — aynı konum ve yapı */
body.fera-premium-product-v2 .woocommerce-tabs{
  clear:both;
  margin-top:34px!important;
  padding-top:24px;
  border-top:1px solid rgba(126,79,13,.22);
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs{
  margin-bottom:0!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li{
  border-color:rgba(126,79,13,.22)!important;
  border-radius:0!important;
  background:#f1d7a5!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li a{
  color:var(--fera-gold-dark)!important;
  font-weight:800!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li.active{
  background:var(--fera-gold-dark)!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li.active a{
  color:#fffaf0!important;
}

body.fera-premium-product-v2 .woocommerce-Tabs-panel{
  padding:27px!important;
  border:1px solid rgba(126,79,13,.19);
  background:rgba(255,250,240,.78);
  color:#544532;
  line-height:1.8;
}

body.fera-premium-product-v2 .woocommerce-Tabs-panel h2{
  color:var(--fera-ink);
  font-family:Georgia,"Times New Roman",serif;
  font-weight:500;
}

/* Açıklamadaki büyük ürün görseli korunur ama sayfayı taşırmaz */
body.fera-premium-product-v2 .woocommerce-Tabs-panel img{
  max-width:100%!important;
  height:auto!important;
}

/* Benzer ürünler — mevcut ürün sayısı ve sorgu değişmez */
body.fera-premium-product-v2 .related,
body.fera-premium-product-v2 .upsells{
  clear:both;
  margin-top:36px;
}

body.fera-premium-product-v2 .related > h2,
body.fera-premium-product-v2 .upsells > h2{
  color:var(--fera-ink);
  font-family:Georgia,"Times New Roman",serif;
  font-size:30px;
  font-weight:500;
}

body.fera-premium-product-v2 .related ul.products li.product,
body.fera-premium-product-v2 .upsells ul.products li.product{
  padding:12px!important;
  border:1px solid rgba(126,79,13,.20);
  background:linear-gradient(180deg,#fffaf0,#efd39c);
}

body.fera-premium-product-v2 .related ul.products li.product img,
body.fera-premium-product-v2 .upsells ul.products li.product img{
  height:auto!important;
  object-fit:contain!important;
  padding:8px;
  background:radial-gradient(circle,#fffef9,#f4dfb8);
}

body.fera-premium-product-v2 .related ul.products li.product .button,
body.fera-premium-product-v2 .upsells ul.products li.product .button{
  border-radius:0!important;
  background:var(--fera-gold-dark)!important;
  color:#fffaf0!important;
}

/* Tablet */
@media(max-width:1024px){
  body.fera-premium-product-v2 .site-content > .col-full{
    padding-left:20px;
    padding-right:20px;
  }

  body.fera-premium-product-v2 div.product{
    padding:18px;
  }

  body.fera-premium-product-v2 div.product .product_title{
    font-size:34px;
  }
}

/* Mobil: Temanın kolon yapısına dokunmadan yalnızca görünüm ayarlanır */
@media(max-width:767px){
  body.fera-premium-product-v2 .site-content > .col-full{
    padding:12px 10px 32px;
  }

  body.fera-premium-product-v2 div.product{
    padding:9px;
    border-left:0;
    border-right:0;
    box-shadow:none;
  }

  body.fera-premium-product-v2 div.product .woocommerce-product-gallery{
    padding:9px;
  }

  body.fera-premium-product-v2 .woocommerce-product-gallery__image img{
    max-height:390px;
  }

  body.fera-premium-product-v2 div.product .summary{
    padding-top:20px;
  }

  body.fera-premium-product-v2 div.product .product_title{
    font-size:33px;
  }

  body.fera-premium-product-v2 div.product .price{
    font-size:24px!important;
  }

  body.fera-premium-product-v2 .woocommerce-Tabs-panel{
    padding:18px 14px!important;
  }

  /* Mobilde benzer ürünleri yatay kaydır */
  body.fera-premium-product-v2 .related ul.products,
  body.fera-premium-product-v2 .upsells ul.products{
    display:flex!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2px 2px 14px!important;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  body.fera-premium-product-v2 .related ul.products::-webkit-scrollbar,
  body.fera-premium-product-v2 .upsells ul.products::-webkit-scrollbar{
    display:none;
  }

  body.fera-premium-product-v2 .related ul.products li.product,
  body.fera-premium-product-v2 .upsells ul.products li.product{
    flex:0 0 78vw!important;
    width:78vw!important;
    min-width:78vw!important;
    margin:0!important;
    scroll-snap-align:start;
  }
}


/* =========================================================
   FERA PREMIUM ÜRÜN SAYFALARI V2 GOLD
   Mevcut yapı korunur, gold hissi güçlendirilir.
========================================================= */

body.fera-premium-product-v2{
  --fera-ivory:#fff8e8;
  --fera-cream:#f8e4bb;
  --fera-cream-deep:#e7bd6a;
  --fera-gold-light:#f0d79f;
  --fera-gold:#c48616;
  --fera-gold-strong:#a96c08;
  --fera-gold-dark:#6f4307;
  --fera-ink:#2b2116;
  --fera-muted:#725f47;
  --fera-line:rgba(134,82,8,.28);
  background:
    linear-gradient(180deg,#f7e6c3 0%,#ecd09a 100%)!important;
}

/* Genel ürün alanı daha rafine gold çerçeve */
body.fera-premium-product-v2 div.product{
  border:1px solid rgba(137,84,8,.32)!important;
  background:
    linear-gradient(145deg,rgba(255,250,238,.96),rgba(240,211,154,.88))!important;
  box-shadow:
    0 20px 58px rgba(92,53,6,.13),
    inset 0 0 0 1px rgba(255,255,255,.55)!important;
}

body.fera-premium-product-v2 div.product::before{
  content:"";
  position:absolute;
  inset:10px;
  pointer-events:none;
  border:1px solid rgba(183,121,19,.13);
}

/* Galeri */
body.fera-premium-product-v2 div.product .woocommerce-product-gallery{
  border:1px solid rgba(145,88,9,.28)!important;
  background:
    radial-gradient(circle at 50% 42%,#fffefa 0%,#fff5df 58%,#e6b95f 100%)!important;
  box-shadow:
    inset 0 0 0 6px rgba(255,250,238,.42),
    0 10px 24px rgba(103,61,8,.08);
}

body.fera-premium-product-v2 .flex-control-thumbs li{
  border:1px solid rgba(145,88,9,.30)!important;
  background:linear-gradient(180deg,#fffaf0,#efd39a)!important;
}

body.fera-premium-product-v2 .flex-control-thumbs img.flex-active{
  outline:2px solid var(--fera-gold)!important;
  box-shadow:0 0 0 3px rgba(196,134,22,.14);
}

/* Başlık ve fiyat */
body.fera-premium-product-v2 div.product .product_title{
  color:#2f2112!important;
  text-shadow:0 1px 0 rgba(255,255,255,.55);
}

body.fera-premium-product-v2 div.product .price{
  color:var(--fera-gold-dark)!important;
}

body.fera-premium-product-v2 div.product .price ins{
  color:var(--fera-gold-strong)!important;
}

body.fera-premium-product-v2 div.product .price del{
  color:#8f795e!important;
}

/* Kısa açıklama ve mevcut bilgi alanları */
body.fera-premium-product-v2 div.product .woocommerce-product-details__short-description{
  border-bottom:1px solid rgba(145,88,9,.24)!important;
}

body.fera-premium-product-v2 div.product .woocommerce-product-details__short-description ul,
body.fera-premium-product-v2 div.product .summary > ul{
  border:1px solid rgba(145,88,9,.22)!important;
  background:
    linear-gradient(145deg,rgba(255,250,238,.88),rgba(235,199,128,.52))!important;
}

/* Sepete ekle alanı */
body.fera-premium-product-v2 div.product form.cart{
  border:1px solid rgba(145,88,9,.34)!important;
  background:
    linear-gradient(145deg,#fff9eb 0%,#e8be70 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.42);
}

body.fera-premium-product-v2 div.product form.cart input.qty{
  border:1px solid rgba(122,72,6,.42)!important;
  background:#fff9eb!important;
}

body.fera-premium-product-v2 div.product form.cart .single_add_to_cart_button{
  border-color:#6f4307!important;
  background:
    linear-gradient(135deg,#6f4307 0%,#a96c08 48%,#c48616 100%)!important;
  box-shadow:
    0 12px 24px rgba(91,52,5,.22),
    inset 0 1px 0 rgba(255,255,255,.18)!important;
}

body.fera-premium-product-v2 div.product form.cart .single_add_to_cart_button:hover{
  background:
    linear-gradient(135deg,#8c5609 0%,#c18416 55%,#dfa83f 100%)!important;
}

/* Mevcut ödeme / güven alanlarının çevresi */
body.fera-premium-product-v2 div.product img[src*="payment"],
body.fera-premium-product-v2 div.product img[alt*="ödeme" i],
body.fera-premium-product-v2 div.product img[alt*="guven" i],
body.fera-premium-product-v2 div.product img[alt*="güven" i]{
  border:1px solid rgba(145,88,9,.24)!important;
  background:linear-gradient(180deg,#fffaf0,#f0d9a7)!important;
}

/* Sekmeler */
body.fera-premium-product-v2 .woocommerce-tabs{
  border-top:1px solid rgba(145,88,9,.28)!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li{
  border-color:rgba(145,88,9,.30)!important;
  background:
    linear-gradient(180deg,#f6dfb0,#e2b45f)!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li a{
  color:#6f4307!important;
}

body.fera-premium-product-v2 .woocommerce-tabs ul.tabs li.active{
  background:
    linear-gradient(135deg,#6f4307,#b87913)!important;
}

body.fera-premium-product-v2 .woocommerce-Tabs-panel{
  border:1px solid rgba(145,88,9,.24)!important;
  background:
    linear-gradient(145deg,rgba(255,250,238,.94),rgba(239,211,155,.74))!important;
  box-shadow:0 10px 26px rgba(99,58,7,.07);
}

/* Benzer ürünler */
body.fera-premium-product-v2 .related ul.products li.product,
body.fera-premium-product-v2 .upsells ul.products li.product{
  border:1px solid rgba(145,88,9,.27)!important;
  background:
    linear-gradient(180deg,#fff9eb 0%,#e8be70 100%)!important;
  box-shadow:0 10px 24px rgba(95,55,6,.09);
}

body.fera-premium-product-v2 .related ul.products li.product img,
body.fera-premium-product-v2 .upsells ul.products li.product img{
  background:
    radial-gradient(circle,#fffefa 0%,#f8e6c2 65%,#e2b35d 100%)!important;
}

body.fera-premium-product-v2 .related ul.products li.product .button,
body.fera-premium-product-v2 .upsells ul.products li.product .button{
  background:
    linear-gradient(135deg,#6f4307,#b87913)!important;
  color:#fffaf0!important;
}

/* Mobilde de güçlü ama temiz gold görünüm */
@media(max-width:767px){
  body.fera-premium-product-v2 div.product{
    background:
      linear-gradient(180deg,#fff9eb 0%,#efd49e 100%)!important;
  }

  body.fera-premium-product-v2 div.product::before{
    display:none;
  }

  body.fera-premium-product-v2 div.product .woocommerce-product-gallery{
    background:
      radial-gradient(circle at 50% 42%,#fffefa 0%,#fff4de 62%,#e0b059 100%)!important;
  }

  body.fera-premium-product-v2 .woocommerce-Tabs-panel{
    background:
      linear-gradient(180deg,#fffaf0,#eed19a)!important;
  }
}


/* =========================================================
   V2.1 — Yalnızca header logo rengi
   Ürün sayfası tasarımına başka müdahale yoktur.
========================================================= */

body.fera-premium-product-v2 .site-header .custom-logo-link img,
body.fera-premium-product-v2 .site-branding .custom-logo,
body.fera-premium-product-v2 .site-branding img{
  content:url("fera-logo-gold.png")!important;
  filter:none!important;
  opacity:1!important;
  visibility:visible!important;
  object-fit:contain!important;
}


/* V2.2 Logo responsive fix */
.site-header .custom-logo-link img,
.site-branding img{
    width:auto!important;
    height:auto!important;
    max-width:230px!important;
    max-height:90px!important;
    object-fit:contain!important;
}
@media (max-width:767px){
.site-header .custom-logo-link img,
.site-branding img{
    max-width:170px!important;
    max-height:64px!important;
    width:auto!important;
    height:auto!important;
}
}

/* V2.2 — Ürüne özel Fera Özlüce premium bilgi alanı */
.fera-premium-product-v2 .fera-product-local-premium{
  position:relative;
  margin:30px 0 24px;
  padding:26px 28px;
  border:1px solid rgba(166,122,45,.28);
  border-radius:18px;
  background:linear-gradient(135deg,rgba(255,250,239,.96),rgba(248,232,194,.78));
  box-shadow:0 12px 34px rgba(72,48,18,.08);
  overflow:hidden;
}
.fera-premium-product-v2 .fera-product-local-premium:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:3px;
  background:linear-gradient(90deg,transparent,rgba(166,122,45,.8),transparent);
}
.fera-premium-product-v2 .fera-product-local-kicker{
  margin:0 0 7px;
  font-size:12px;
  line-height:1.4;
  letter-spacing:.16em;
  font-weight:800;
  text-transform:uppercase;
  color:#8a642c;
}
.fera-premium-product-v2 .fera-product-local-premium h3{
  margin:0 0 12px;
  font-size:clamp(19px,2vw,24px);
  line-height:1.3;
  color:#3c2b18;
}
.fera-premium-product-v2 .fera-product-local-premium p{
  margin:0 0 10px;
  line-height:1.8;
  color:#5a3b19;
}
.fera-premium-product-v2 .fera-product-local-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:16px;
}
.fera-premium-product-v2 .fera-product-local-meta span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 11px;
  border:1px solid rgba(166,122,45,.23);
  border-radius:999px;
  background:rgba(255,255,255,.64);
  font-size:12px;
  font-weight:700;
  color:#765224;
}
@media (max-width:767px){
  .fera-premium-product-v2 .fera-product-local-premium{
    margin:22px 0 18px;
    padding:21px 18px;
    border-radius:15px;
  }
}
