/* Baktabul marketplace theme - mevcut PHP/JS altyapısını koruyan görsel katman */
:root {
  --market-orange: #f27a1a;
  --market-orange-dark: #d96108;
  --market-ink: #2f3542;
  --market-muted: #6f7785;
  --market-border: #e8ebef;
  --market-bg: #f7f8fa;
  --market-card: #ffffff;
  --market-radius: 12px;
}

.marketplace-theme {
  background: var(--market-bg);
  color: var(--market-ink);
}
.marketplace-theme a { color: var(--market-ink); }
.marketplace-theme a:hover { color: var(--market-orange); }
.marketplace-theme .container { max-width: 1240px; }

/* Üst bilgi ve header */
.marketplace-theme .header-area { background: #fff; }
.marketplace-theme .header-top-ptb-1 {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--market-border) !important;
  padding: 8px 0;
}
.marketplace-theme .header-info > ul > li > a,
.marketplace-theme .header-info > ul > li a { color: #697282; font-size: 12px; }
.marketplace-theme .header-info > ul > li > a:hover { color: var(--market-orange); }
.marketplace-theme .header-middle-ptb-1 {
  background: #fff !important;
  padding: 18px 0;
}
.marketplace-theme .logo.logo-width-1 { margin-right: 34px; }
.marketplace-theme .logo.logo-width-1 a img { width: 174px; min-width: 174px; max-height: 58px; object-fit: contain; }
.marketplace-theme .search-style-2 { flex: 1; max-width: 680px; margin: 0 28px 0 0; }
.marketplace-theme .search-style-2 form { position: relative; width: 100%; }
.marketplace-theme .search-style-2 form input {
  height: 48px; border: 2px solid #f1f2f4; border-radius: 8px;
  background: #f8f9fb; padding: 0 58px 0 18px; color: var(--market-ink);
  font-size: 14px; box-shadow: none;
}
.marketplace-theme .search-style-2 form input:focus { border-color: var(--market-orange); background: #fff; }
.marketplace-theme .search-style-2 form button {
  position: absolute; right: 0; top: 0; width: 54px; height: 48px;
  border: 0; border-radius: 0 8px 8px 0; background: var(--market-orange);
  color: #fff; font-size: 20px;
}
.marketplace-theme .search-style-2 form button:hover { background: var(--market-orange-dark); }
.marketplace-theme .header-action-2 .header-action-icon-2 { padding: 0 10px !important; }
.marketplace-theme .header-action-2 .header-action-icon-2 > a { color: var(--market-ink); }
.marketplace-theme .header-action-2 .header-action-icon-2 > a span { color: var(--market-ink); font-size: 13px; }
.marketplace-theme .header-action-2 .header-action-icon-2 > a span.pro-count { background: var(--market-orange) !important; }
.marketplace-theme .header-action-2 .header-action-icon-2 .lable { font-size: 13px; font-weight: 600; }
.marketplace-theme .header-bottom-bg-color {
  background: var(--market-orange) !important;
  border: 0 !important;
  box-shadow: 0 2px 8px rgba(35, 43, 55, .08);
}
.marketplace-theme .header-bottom { min-height: 50px; }
.marketplace-theme .main-menu > nav > ul > li > a {
  color: #fff !important; font-size: 13px; font-weight: 600; padding: 16px 13px;
}
.marketplace-theme .main-menu > nav > ul > li:hover > a { background: rgba(0,0,0,.10); color: #fff !important; }
.marketplace-theme .main-menu > nav > ul > li .sub-menu { border-top: 3px solid var(--market-orange); border-radius: 0 0 8px 8px; }
.marketplace-theme .hotline { color: #fff; }
.marketplace-theme .hotline p { color: #fff; font-size: 13px; }
.marketplace-theme .hotline p span { color: rgba(255,255,255,.8); }
.marketplace-theme .header-area > .header-top:last-child,
.marketplace-theme .header-area .ozelbg1 { background: #fff4eb !important; color: var(--market-orange-dark); }
.marketplace-theme #news-flash li { color: var(--market-orange-dark); font-size: 13px; }

/* Hikâyeler, bannerlar ve ana içerik */
.marketplace-theme .main { padding-top: 12px; }
.marketplace-theme .popular-categories { padding-top: 8px; }
.marketplace-theme #story { padding: 5px 2px; }
.marketplace-theme #story .img-hover-scale { border-radius: 50%; border: 3px solid #ffe0c7; padding: 3px; background: #fff; }
.marketplace-theme #story .img-hover-scale img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.marketplace-theme #story h6 { color: var(--market-ink); font-size: 12px; font-weight: 600; margin-top: 8px; }
.marketplace-theme .home-slider { margin-top: 14px; }
.marketplace-theme .home-slide-cover,
.marketplace-theme .single-hero-slider,
.marketplace-theme .banner-img { border-radius: var(--market-radius); overflow: hidden; }
.marketplace-theme .single-hero-slider { min-height: 350px; background-position: center; background-size: cover; }
.marketplace-theme .banner-img { box-shadow: 0 3px 14px rgba(32,39,52,.08); }
.marketplace-theme .section-padding { padding: 24px 0; }
.marketplace-theme .section-title { border-bottom: 1px solid var(--market-border); margin-bottom: 18px; padding-bottom: 10px; }
.marketplace-theme .section-title h3 { color: var(--market-ink); font-size: 22px; font-weight: 700; margin: 0; }
.marketplace-theme .section-title h3:before { background: var(--market-orange); width: 5px; border-radius: 4px; }
.marketplace-theme .product-cart-wrap {
  background: var(--market-card); border: 1px solid var(--market-border); border-radius: var(--market-radius);
  box-shadow: 0 2px 8px rgba(32,39,52,.04); overflow: hidden; transition: .2s ease;
}
.marketplace-theme .product-cart-wrap:hover { border-color: #ffd2b0; box-shadow: 0 8px 22px rgba(32,39,52,.10); transform: translateY(-2px); }
.marketplace-theme .product-cart-wrap .product-img-action-wrap { padding: 10px 10px 0; }
.marketplace-theme .product-cart-wrap .product-img-action-wrap .product-img a { height: 245px; }
.marketplace-theme .product-cart-wrap .product-img-action-wrap .product-img a img { object-fit: contain; }
.marketplace-theme .product-cart-wrap .product-content-wrap { padding: 12px 14px 15px; }
.marketplace-theme .product-cart-wrap .product-content-wrap h2 { font-size: 14px; line-height: 1.35; min-height: 38px; }
.marketplace-theme .product-cart-wrap .product-content-wrap h2 a { color: var(--market-ink); }
.marketplace-theme .product-cart-wrap .product-content-wrap .product-category a { color: var(--market-muted); font-size: 11px; }
.marketplace-theme .product-cart-wrap .product-content-wrap .product-price span { color: var(--market-orange-dark); font-size: 18px; font-weight: 700; }
.marketplace-theme .product-cart-wrap .product-content-wrap .product-price span.old-price { color: #9aa1ad; font-size: 12px; }
.marketplace-theme .product-cart-wrap .product-card-bottom .add-cart .add { color: var(--market-orange); font-weight: 700; }
.marketplace-theme .product-cart-wrap .product-badges span { border-radius: 4px; background: var(--market-orange); }
.marketplace-theme .product-cart-wrap .product-badges span.sale { background: #e94b4b; }
.marketplace-theme .product-cart-wrap .product-action-1 a.action-btn:hover { background: var(--market-orange); border-color: var(--market-orange); color: #fff; }
.marketplace-theme .carausel-4-columns-cover .product-cart-wrap { margin: 0 6px; }
.marketplace-theme .product-tabs, .marketplace-theme .product-tabs + section { background: transparent; }

/* Alt bilgi */
.marketplace-theme footer.main { background: #fff; margin-top: 30px; border-top: 1px solid var(--market-border); }
.marketplace-theme footer .featured { background: #fff8f2; border-bottom: 1px solid #ffe8d7; }
.marketplace-theme .banner-left-icon .banner-icon { color: var(--market-orange); }
.marketplace-theme .footer-mid { background: #fff; }
.marketplace-theme .footer-list li a:hover { color: var(--market-orange); }
.marketplace-theme .newsletter-inner { background: #fff4eb; border-radius: var(--market-radius); }
.marketplace-theme .newsletter-content form input { border-color: #ffd9be; }
.marketplace-theme .newsletter-content form button { background: var(--market-orange); }
.marketplace-theme .footer-bottom { border-color: var(--market-border); }

/* Mobil */
@media (max-width: 991px) {
  .marketplace-theme .header-middle-ptb-1 { padding: 10px 0; }
  .marketplace-theme .header-bottom-bg-color { background: #fff !important; box-shadow: 0 1px 6px rgba(32,39,52,.08); }
  .marketplace-theme .header-bottom .logo img { max-height: 42px; object-fit: contain; }
  .marketplace-theme .burger-icon span { background: var(--market-orange); }
  .marketplace-theme .header-action-icon-2 > a span.pro-count { background: var(--market-orange) !important; }
  .marketplace-theme .single-hero-slider { min-height: 190px; }
  .marketplace-theme .section-title h3 { font-size: 18px; }
  .marketplace-theme .product-cart-wrap .product-img-action-wrap .product-img a { height: 180px; }
  .marketplace-theme .product-cart-wrap .product-content-wrap { padding: 9px 10px 12px; }
  .marketplace-theme .product-cart-wrap .product-content-wrap h2 { font-size: 12px; }
  .marketplace-theme .product-cart-wrap .product-content-wrap .product-price span { font-size: 16px; }
}
@media (max-width: 575px) {
  .marketplace-theme .container { width: 100%; padding-left: 12px; padding-right: 12px; }
  .marketplace-theme .single-hero-slider { min-height: 155px; }
  .marketplace-theme .product-cart-wrap .product-img-action-wrap .product-img a { height: 155px; }
  .marketplace-theme .section-padding { padding: 18px 0; }
}

/* Mega menü: mevcut üç seviyeli kategori ağacını sütunlu panele dönüştürür */
@media (min-width: 992px) {
  .marketplace-theme .header-bottom .container,
  .marketplace-theme .header-bottom .header-wrap,
  .marketplace-theme .header-bottom .header-nav,
  .marketplace-theme .header-bottom .main-menu,
  .marketplace-theme .header-bottom .main-menu > nav { position: static; }
  .marketplace-theme .header-bottom .main-menu { width: 100%; }
  .marketplace-theme .header-bottom .main-menu > nav > ul { width: 100%; display: flex; }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li { position: static; }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu {
    left: 0; right: 0; top: 100%; width: 100%; min-width: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 22px 28px; padding: 24px 30px 27px; margin-top: 0 !important;
    border: 0; border-top: 3px solid var(--market-orange); border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 28px rgba(32,39,52,.15); background: #fff;
  }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li:hover > ul.sub-menu { margin-top: 0 !important; }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li {
    min-width: 0; margin: 0; padding: 0 14px 0 0; border-right: 1px solid #f0f1f3;
  }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li:last-child { border-right: 0; }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li > a {
    display: block; color: var(--market-ink); font-size: 14px; font-weight: 700;
    padding: 0 0 10px; border-bottom: 2px solid #fff0e6; line-height: 1.35;
  }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li > a i { display: none; }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li > ul.level-menu {
    position: static !important; display: block; visibility: visible !important; opacity: 1 !important;
    width: auto; margin: 0 !important; padding: 10px 0 0; border: 0; border-radius: 0;
    box-shadow: none; background: transparent;
  }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li > ul.level-menu > li {
    margin: 0 0 7px; padding: 0; line-height: 1.25;
  }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li > ul.level-menu > li > a {
    display: block; color: #747c89; font-size: 12px; padding: 2px 0;
  }
  .marketplace-theme .header-bottom .main-menu > nav > ul > li > ul.sub-menu > li > ul.level-menu > li > a:hover {
    color: var(--market-orange); padding-left: 3px;
  }
}
