/* TV Ekipman 7.1.0: picture-inspired, genuine WooCommerce broadcast mega menu.
   Keep the phone header/menu and non-home pages completely unchanged. */
.tvemui710-mega[hidden], .tvemui710-category-results[hidden] {display:none!important;}
.tvemui710-empty {margin:0;padding:26px 16px;color:#64746b;font-size:13px;line-height:1.6;}
.tvemui710-kicker {display:block;margin-bottom:8px;letter-spacing:.13em;text-transform:uppercase;color:#157448;font-size:10px;font-weight:750;}
.tvemui710-product-image {display:flex;justify-content:center;align-items:center;overflow:hidden;height:145px;padding:14px;border-radius:13px 13px 0 0;background:#fff;}
.tvemui710-product-image img {display:block;width:auto!important;max-height:122px!important;max-width:100%!important;height:auto!important;margin:auto!important;object-fit:contain;}
.tvemui710-product {min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e5ece8;border-radius:14px;overflow:hidden;transition:border-color .15s ease, box-shadow .15s ease;}
.tvemui710-product:hover {border-color:#b7d9c7;box-shadow:0 8px 22px rgba(5,44,28,.08);}
.tvemui710-product h4 {font-size:12px!important;font-weight:700!important;line-height:1.45!important;min-height:50px;margin:0!important;padding:8px 12px 5px;color:#21382c!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.tvemui710-product h4 a {color:inherit!important;text-decoration:none!important;}
.tvemui710-price {margin:auto 0 0;padding:8px 12px 14px;color:#12683b;font-size:12px;font-weight:800;line-height:1.4;overflow-wrap:anywhere;}
.tvemui710-price ins {text-decoration:none;}.tvemui710-price del {display:block;color:#8e9890;font-size:11px;font-weight:500;}
.tvemui710-broadcast-replaced {display:block;max-width:100%;width:100%;height:auto;max-height:270px;object-fit:cover;object-position:center 48%;border-radius:14px;}
/* Expand directly UNDER Kategorileri Keşfet. All existing category chip sizes/styles are retained. */
body.tvemui-v64-home .tvemui64-category-link.tvemui710-selected {background:#e2f2e7!important;color:#0d6942!important;border-color:#a3d2b7!important;}
body.tvemui-v64-home .tvemui710-category-results {box-sizing:border-box;clear:both;width:100%;margin:15px 0 0;padding:16px;background:#fff;border:1px solid #e1ebe5;border-radius:18px;box-shadow:0 7px 24px rgba(10,49,30,.065);}
body.tvemui-v64-home .tvemui710-cat-result-head {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px;}
body.tvemui-v64-home .tvemui710-cat-result-head h3 {margin:0!important;font-weight:770!important;font-size:20px!important;line-height:1.3;color:#173a28;}
body.tvemui-v64-home .tvemui710-results-more {font-size:12px;color:#08713f;text-decoration:none;font-weight:700;}
body.tvemui-v64-home .tvemui710-results-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;}
@media (max-width:991.98px) {
 .tvemui710-mega {display:none!important;}
 body.tvemui-v64-home .tvemui710-results-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
 body.tvemui-v64-home .tvemui710-category-results {padding:12px;}
 body.tvemui-v64-home .tvemui710-cat-result-head h3 {font-size:17px!important;}
 body.tvemui-v64-home .tvemui710-price {font-size:11px;}
 body.tvemui-v64-home .tvemui710-product-image {height:125px;}
 body.tvemui-v64-home .tvemui710-product-image img {max-height:105px!important;}
}
@media (min-width:992px) {
 /* v7.1.2: Never suppress the native Electro "show-dropdown" sidebar.
    It is the permanent category menu behind the optional broadcast overlay. */
 body.tvemui-v64-home .departments-menu-v2 > .dropdown > .departments-menu-v2-title {cursor:pointer;}
 .tvemui710-mega {position:fixed;box-sizing:border-box;display:grid;grid-template-columns:240px minmax(0,1fr);top:var(--tvemui710-top,165px);left:var(--tvemui710-left,22px);width:var(--tvemui710-width,1200px);max-height:min(75vh,680px);min-height:540px;z-index:99990;overflow:hidden;border:1px solid #e2ebe5;border-radius:15px;background:#fff;box-shadow:0 20px 50px rgba(6,31,17,.19), 0 4px 14px rgba(10,40,24,.07);color:#183329;}
 .tvemui710-mega-nav {box-sizing:border-box;overflow:auto;min-width:0;padding:19px 13px 17px;background:linear-gradient(115deg,#fbfdfb,#f5faf6);border-right:1px solid #e9f0ea;}
 .tvemui710-nav-heading {margin:2px 9px 15px;font-size:10px;color:#6d8576;letter-spacing:.1em;font-weight:800;}
 .tvemui710-mega-choice {display:flex;box-sizing:border-box;position:relative;align-items:center;gap:11px;width:100%;min-height:39px;margin:1px 0;padding:9px 9px!important;appearance:none;cursor:pointer;text-align:left;border:0!important;border-bottom:1px solid #edf1ee!important;border-radius:9px;background:transparent!important;color:#2d4136!important;font-size:12px!important;line-height:1.3;font-weight:650!important;transition:background-color .14s ease,color .14s ease;}
 .tvemui710-mega-choice:is(:hover,.tvemui710-current,:focus-visible) {background:#e2f5e8!important;color:#005b36!important;border-bottom-color:transparent!important;}
 .tvemui710-mega-choice:focus-visible {outline:2px solid #198b52;outline-offset:1px;}
 .tvemui710-choice-icon {width:24px;height:24px;flex:none;display:grid;place-items:center;color:#087a43;font-size:15px;font-weight:600;border-radius:7px;background:#eaf5ed;}
 .tvemui710-choice-name {flex:1;min-width:0;}
 .tvemui710-chev {flex:none;color:#71877c;font-size:23px;font-weight:400;line-height:1;}
 .tvemui710-mega-quote {display:flex;align-items:center;gap:12px;margin:13px 5px 0;padding:12px 10px;color:#006942!important;font-weight:750;font-size:12px;text-decoration:none!important;border-radius:8px;background:#e5f4eb;}
 .tvemui710-mega-main {min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 25px 18px;}
 .tvemui710-mega-head {display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px;}
 .tvemui710-mega-head h2 {font-size:25px!important;font-weight:800!important;line-height:1.2!important;margin:0 0 6px!important;color:#192e23!important;}
 .tvemui710-mega-head p {margin:0;color:#84928a;font-size:12px;}
 .tvemui710-mega-head > a {display:inline-flex;align-items:center;gap:9px;flex:none;background:#e2f4e8;color:#006c40!important;text-decoration:none!important;border-radius:11px;font-size:12px;font-weight:750;padding:10px 14px;}
 .tvemui710-mega-head > a svg {width:15px;height:15px;}
 .tvemui710-mega-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;min-height:241px;}
 .tvemui710-mega .tvemui710-product-image {height:115px;padding:11px;}
 .tvemui710-mega .tvemui710-product-image img {max-height:96px!important;}
 .tvemui710-mega .tvemui710-product h4 {font-size:11px!important;min-height:48px;padding:8px 9px 2px;}
 .tvemui710-mega .tvemui710-price {font-size:11px;padding:8px 9px 12px;}
 .tvemui710-mega-banner {position:relative;display:flex;align-items:center;overflow:hidden;min-height:157px;margin-top:15px;padding:17px 24px;border-radius:12px;color:#fff;background-image:linear-gradient(90deg,rgba(0,29,18,.96) 0%,rgba(0,45,25,.85) 39%,rgba(4,34,27,.1) 78%),var(--tvemui710-broadcast-image);background-position:center 49%;background-size:cover;}
 .tvemui710-banner-copy {position:relative;max-width:480px;z-index:1;}
 .tvemui710-banner-copy > span {display:block;margin-bottom:7px;font-size:10px;font-weight:770;letter-spacing:.12em;color:#a6e7bb;}
 .tvemui710-banner-copy strong {display:block;font-size:23px;font-weight:800;line-height:1.1;letter-spacing:-.025em;}
 .tvemui710-banner-copy em {display:block;color:#59d88d;font-style:normal;}
 .tvemui710-banner-copy p {font-size:11.5px;line-height:1.4;color:#d5e9d8;margin:9px 0;}
 .tvemui710-banner-copy a {display:inline-flex;align-items:center;gap:7px;text-decoration:none!important;color:#145b38!important;border-radius:7px;font-size:11px;font-weight:800;background:#fff;padding:8px 11px;}
 .tvemui710-banner-copy a svg {width:14px;height:14px;}
}
@media (min-width:992px) and (max-width:1199px){
 .tvemui710-mega {grid-template-columns:210px minmax(0,1fr);min-height:505px;}
 .tvemui710-mega-main {padding:19px 15px;}
 .tvemui710-mega-grid {gap:6px;}
 .tvemui710-mega .tvemui710-product-image {height:95px;}
 .tvemui710-mega .tvemui710-product-image img {max-height:80px!important;}
 .tvemui710-mega .tvemui710-mega-head h2 {font-size:21px!important;}
}
@media (prefers-reduced-motion:reduce){
 .tvemui710-product,.tvemui710-mega-choice {transition:none!important;}
}

/* v7.1.1 – fix verified live HTML (Electro header-v2, sidebar image ID 6029).
   Only desktop frontpage. Desktop category panel opens below the real green bar.
   JS absent => Electro's original menu remains the fallback. */
@media (min-width:992px) {
  /* Native image widget is filtered out in PHP; hide as fallback for stale caches. */
  body.home.tvemui-v64-home .site-content .sidebar aside.widget:has(img.wp-image-6029),
  body.home.tvemui-v64-home .site-content .sidebar aside.widget:has(img[src*="Adsiz-tasarim.webp"]) {
    display:none!important;
  }
  /* The last store product block must never visually touch the footer. */
  body.home.tve-modern-ui.tvemui-v64-home .site-content {
    padding-bottom:clamp(50px,5vw,78px)!important;
  }
  body.home.tve-modern-ui.tvemui-v64-home footer.site-footer {
    clear:both!important;
    margin-top:18px!important;
  }
  body.home.tve-modern-ui.tvemui-v64-home .site-content::after,
  body.home.tve-modern-ui.tvemui-v64-home .site-content > .container::after {
    content:"";display:table;clear:both;
  }
  /* Consistent two-column overlay without changing native mobile navigation. */
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega:not([hidden]) {
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega {
    height:min(660px,calc(100vh - var(--tvemui710-top,190px) - 14px));
    min-height:0;
    max-height:none;
    z-index:2147482100;
  }
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-nav {scrollbar-width:thin;}
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-main {scrollbar-width:thin;}
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-banner {
    background-color:#09291f;
    background-position:center, center 45%;
    background-size:cover;
    min-height:166px;
  }
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-grid {min-height:200px;}
}
@media (min-width:992px) and (max-height:740px) {
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-head h2 {font-size:21px!important;}
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-main {padding:15px 21px;}
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-grid {min-height:155px;}
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega .tvemui710-product-image {height:93px;}
  body.home.tve-modern-ui.tvemui-v64-home .tvemui710-mega-banner {min-height:115px;}
}

/* v7.1.2: Native left category list stays visible; modern mega sits on top ONLY after a click.
   Scope to header-v2 desktop homepage so shop, tablet, and mobile are unchanged. */
@media (min-width:992px) {
  body.home.tvemui-v64-home .electro-navbar .departments-menu-v2 > .dropdown.show-dropdown > .dropdown-menu.yamm {
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body.home.tvemui-v64-home .tvemui710-mega:not([hidden]) {
    z-index:2147482100!important;
  }
}
