/* ===== EKSİK İKON EŞLEMELERİ ===== */
.icon-call:before { content: "\e95d"; }
.icon-phone:before { content: "\e95d"; }
.icon-check-circle:before { content: "\e911"; }
.icon-credit-card:before { content: "\e90f"; }
.icon-send:before { content: "\e903"; }
.icon-shield:before { content: "\e950"; }
.icon-map-pin:before { content: "\e947"; }
.icon-trash:before { content: "\e917"; }
.icon-truck:before { content: "\e953"; }
.icon-plus:before { content: "+"; font-family: inherit !important; font-weight: 700; }
.icon-tag:before { content: "\e93d"; }
.icon-info:before { content: "\e94b"; }
.icon-info-circle:before { content: "\e94b"; }
.icon-image:before { content: "\e943"; }
.icon-warning:before { content: "\e94b"; }
.icon-facebook:before { content: "\e921"; }

/* ===== BOOK STORE HEADER ===== */
#allCategoriesDropdown { position: relative; }
.bookstore-cat-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.12); z-index: 1000;
    border-radius: 0 0 8px 8px; padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .25s ease;
}
#allCategoriesDropdown:hover .bookstore-cat-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.bookstore-cat-link {
    display: flex; align-items: center; padding: 8px 16px;
    font-size: 13px; color: #333; text-decoration: none; transition: all .2s;
}
.bookstore-cat-link:hover { background: #f8f8f8; color: #000; padding-left: 20px; }
.bookstore-cat-item.has-sub { position: relative; }
.bookstore-cat-sub {
    position: absolute; top: 0; left: 100%; min-width: 400px;
    background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.12);
    border-radius: 8px; padding: 16px 20px;
    opacity: 0; visibility: hidden; transition: all .2s ease;
}
.bookstore-cat-item.has-sub:hover > .bookstore-cat-sub {
    opacity: 1; visibility: visible;
}
.bookstore-sub-link:hover { color: #000 !important; padding-left: 4px; }
.bookstore-nav-link { position: relative; padding: 4px 0; transition: color .2s; white-space: nowrap; }
.bookstore-nav-link:hover { color: var(--primary, #000) !important; }
@media (max-width: 991px) {
    .bookstore-cat-dropdown, .bookstore-cat-sub { display: none !important; }
}

/* Header Dropdown Menü Düzeltme */
.box-nav-ul .menu-item { position: relative; }
.box-nav-ul .menu-item .sub-menu.submenu-default {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,.1); z-index: 1000;
    padding: 10px 0; border-radius: 0 0 4px 4px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .25s ease;
}
.box-nav-ul .menu-item:hover > .sub-menu.submenu-default {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.sub-menu.submenu-default .menu-list { list-style: none; padding: 0; margin: 0; }
.sub-menu.submenu-default .menu-list li { padding: 0; }
.sub-menu.submenu-default .menu-list li a {
    display: block; padding: 6px 20px; color: #333; font-size: 14px;
    transition: color .2s, padding-left .2s;
}
.sub-menu.submenu-default .menu-list li a:hover { color: #000; padding-left: 25px; }

/* Ürün Açıklama Normalizasyonu */
.product-description { font-size: 14px; line-height: 1.7; color: #555; word-wrap: break-word; overflow-wrap: break-word; }
.product-description img { max-width: 100%; height: auto; }
.product-description h1, .tf-product-des-demo h1 { font-size: 1.15em; margin: 15px 0 10px; color: #333; }
.product-description h2, .tf-product-des-demo h2 { font-size: 1.1em; margin: 14px 0 8px; color: #333; }
.product-description h3, .tf-product-des-demo h3 { font-size: 1.05em; margin: 12px 0 8px; color: #333; }
.product-description h4, .product-description h5, .product-description h6,
.tf-product-des-demo h4, .tf-product-des-demo h5, .tf-product-des-demo h6 { font-size: 1em; margin: 10px 0 8px; color: #333; }
.tf-product-des-demo { font-size: 14px; line-height: 1.7; color: #555; word-wrap: break-word; }
.tf-product-des-demo img { max-width: 100%; height: auto; }
.tf-product-des-demo table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.tf-product-des-demo table td, .tf-product-des-demo table th { padding: 8px; border: 1px solid #ddd; font-size: 13px; }
.tf-product-des-demo p { margin-bottom: 10px; }
.tf-product-des-demo ul, .tf-product-des-demo ol { padding-left: 20px; margin-bottom: 10px; }
.product-description table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.product-description table td, .product-description table th { padding: 8px; border: 1px solid #ddd; font-size: 13px; }
.product-description p { margin-bottom: 10px; }
.product-description ul, .product-description ol { padding-left: 20px; margin-bottom: 10px; }
.product-description iframe { max-width: 100%; }

/* Hesabım sidebar — mobil offcanvas butonu */
.btn-sidebar-account { text-align: center; margin: 10px 0; }

/* Mega Menu */
.box-nav-ul .menu-item .sub-menu.mega-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
    width: 96vw; max-width: 1200px;
    background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.15); z-index: 1000;
    padding: 0; border-radius: 0 0 8px 8px;
    opacity: 0; visibility: hidden;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.box-nav-ul .menu-item:hover > .sub-menu.mega-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}

/* Mega Menu Grid */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0;
    padding: 24px 28px 16px;
}
.mega-menu-col {
    padding: 0 12px;
    border-right: 1px solid #f5f5f5;
}
.mega-menu-col:last-child { border-right: none; }

/* Kategori Header — görsel + başlık */
.mega-cat-header { margin-bottom: 12px; text-align: center; }
.mega-cat-img-wrap {
    display: block; width: 80px; height: 80px; margin: 0 auto 10px;
    border-radius: 50%; overflow: hidden;
    border: 2px solid #f0f0f0;
    transition: border-color .3s, transform .3s;
}
.mega-cat-img-wrap:hover { border-color: #000; transform: scale(1.05); }
.mega-cat-img { width: 100%; height: 100%; object-fit: cover; }
.mega-cat-title {
    display: block; font-size: 13px; font-weight: 700; color: #111;
    text-decoration: none; text-transform: uppercase; letter-spacing: .4px;
    transition: color .2s;
}
.mega-cat-title:hover { color: #555; }

/* Alt Kategori Listesi */
.mega-cat-list {
    list-style: none; padding: 0; margin: 8px 0 0;
    text-align: center;
}
.mega-cat-list li { padding: 0; }
.mega-cat-list li a {
    display: block; padding: 4px 0; color: #777; font-size: 12.5px;
    text-decoration: none; transition: color .2s, padding-left .15s;
}
.mega-cat-list li a:hover { color: #000; }
.mega-cat-more { font-weight: 600 !important; color: #333 !important; font-size: 12px !important; margin-top: 4px; }
.mega-cat-sub { font-size: 11px !important; color: #aaa !important; padding: 2px 0 !important; padding-left: 10px !important; }
.mega-cat-sub:hover { color: #555 !important; }

/* Mega Menü Footer */
.mega-menu-footer {
    border-top: 1px solid #f0f0f0;
    padding: 12px 28px;
    text-align: center;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}
.mega-menu-all-link {
    display: inline-flex; align-items: center;
    font-size: 13px; font-weight: 600; color: #333;
    text-decoration: none; transition: color .2s;
}
.mega-menu-all-link:hover { color: #000; }

/* Mobile Bottom Toolbar body spacing */
@media (max-width: 991px) {
    body { padding-bottom: 60px; }
}

/* Mobil yatay kayma engelle — sadece mobilde */
@media (max-width: 991px) {
    html, body { overflow-x: hidden; }
}

/* Slider */
.tf-slideshow { margin-bottom: 0 !important; }
.tf-slideshow .wrap-slider { position: relative; }
.tf-slideshow .wrap-slider img { border-radius: 0 !important; }
.tf-slideshow .swiper-slide { border-radius: 0 !important; }
.slider-video-wrap { border-radius: 0 !important; }
.slider-img { width: 100%; height: auto; min-height: 300px; max-height: 70vh; object-fit: cover; display: block; }
.slider-placeholder {
    width: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary, #3c71d7) 0%, #1a1a2e 100%);
    padding: 40px 20px;
}
/* Slider pagination — görselin üstünde */
.tf-slideshow .wrap-pagination { position: absolute !important; bottom: 14px !important; left: 0; right: 0; z-index: 10; }

/* Mobil Responsive Özelleştirmeler */
@media only screen and (max-width: 767px) {
    .tf-slideshow .wrap-slider { height: auto !important; }
    .slider-img { min-height: 180px !important; max-height: 250px !important; }
    .slider-placeholder { min-height: 180px !important; padding: 24px 16px !important; }
    .tf-slideshow .slider-video-wrap { padding-bottom: 56.25% !important; }
    .tf-slideshow .box-content .heading { font-size: 16px !important; }
    .tf-slideshow .box-content .subheading { font-size: 11px !important; }
    .tf-slideshow .wrap-pagination { bottom: 10px !important; }
    .tf-main-product-description .nav-tabs { flex-direction: column; border-bottom: none; }
    .tf-main-product-description .nav-tabs .nav-link { border: 1px solid #dee2e6; border-radius: 0; margin-bottom: -1px; text-align: left; padding: 12px 15px; }
    .tf-main-product-description .nav-tabs .nav-link.active { background: #f8f9fa; font-weight: 600; }
    #sepetDrawer { width: 100% !important; }
    #canliAramaSonuc { max-height: 300px; }
    .d-flex.justify-content-center .gap-3 { gap: 0.5rem !important; }
    .d-flex.justify-content-center .gap-3 span:not(.badge) { font-size: 12px; }
    .d-flex.justify-content-center div[style*="width:60px"] { width: 30px !important; }
    .collection-item-circle img,
    .collection-item-circle .rounded-circle { width: 100px !important; height: 100px !important; }
    .col-lg-4 .card { margin-top: 20px; }
    .yuvarlak-kat-link { width: 75px !important; height: 75px !important; }
    section .nav-tabs.justify-content-center { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    section .nav-tabs.justify-content-center::-webkit-scrollbar { display: none; }
    section .nav-tabs.justify-content-center .nav-link { white-space: nowrap; flex-shrink: 0; }
}
@media only screen and (max-width: 991px) {
    .thumbs-slider .tf-product-media-thumbs { display: none; }
    .thumbs-slider .tf-product-media-main { width: 100%; }
}
