/* asel.com.tr — small additions replacing WordPress plugin JS (RevSlider, Slick, PhotoSwipe, Chosen, CF7) */

/* ---- home slider (replaces Slider Revolution, same images and layer positions) ---- */
.asel-slider { position: relative; width: 100%; aspect-ratio: 1040 / 594; overflow: hidden; background: #f5f5f5; }
.asel-slides, .asel-slide { position: absolute; inset: 0; }
.asel-slide { background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.asel-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.asel-layer { position: absolute; height: auto; max-width: none; opacity: 0; }
.asel-slide.is-active .asel-layer { animation: aselLayerIn 2s cubic-bezier(.19, 1, .22, 1) forwards; }
@keyframes aselLayerIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.asel-slider-arrow { position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255,255,255,.75); color: #333; cursor: pointer; opacity: 0; transition: opacity .3s; font-family: 'FontAwesome', sans-serif; font-size: 20px; line-height: 40px; }
.asel-slider-arrow.prev { left: 15px; } .asel-slider-arrow.next { right: 15px; }
.asel-slider-arrow.prev::before { content: "\f104"; } .asel-slider-arrow.next::before { content: "\f105"; }
.asel-slider:hover .asel-slider-arrow { opacity: 1; }
.asel-slider-dots { position: absolute; left: 0; right: 0; bottom: 20px; z-index: 5; text-align: center; }
.asel-slider-dots button { width: 12px; height: 12px; margin: 0 5px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.25); cursor: pointer; }
.asel-slider-dots button.selected { background: #d84345; }
@media (prefers-reduced-motion: reduce) { .asel-slide { transition: none; } .asel-slide.is-active .asel-layer { animation: none; opacity: 1; } }

/* ---- feature boxes & related products without Slick ---- */
.funiter-slide .owl-slick { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.funiter-slide .owl-slick > * { flex: 0 0 25%; max-width: 25%; padding: 0 10px; }
@media (max-width: 1199px) { .funiter-slide .owl-slick > * { flex-basis: 50%; max-width: 50%; margin-bottom: 20px; } }
@media (max-width: 479px) { .funiter-slide .owl-slick > * { flex-basis: 100%; max-width: 100%; } }
.asel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
@media (max-width: 991px) { .asel-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ---- product gallery ---- */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-product-gallery .flex-viewport { overflow: hidden; position: relative; }
.woocommerce-product-gallery .flex-control-thumbs { margin: 0; }
.woocommerce-product-gallery .flex-control-thumbs img { cursor: pointer; }
.contain-left.no-gallery .woocommerce-product-gallery .flex-viewport { float: none; width: 100%; }

/* ---- lightbox (replaces PhotoSwipe / Magnific) ---- */
.asel-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.9); }
.asel-lightbox.open { display: flex; }
.asel-lightbox img { max-width: 92vw; max-height: 88vh; }
.asel-lightbox button { position: absolute; border: 0; background: none; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; padding: 10px 18px; }
.asel-lb-close { top: 10px; right: 10px; } .asel-lb-prev { left: 10px; } .asel-lb-next { right: 10px; }

/* ---- header search: chosen-lite + results ---- */
.category .chosen-container .chosen-drop { display: none; position: absolute; z-index: 1010; left: auto; right: 0; min-width: 220px; }
.category .chosen-container.chosen-with-drop .chosen-drop { display: block; }
.category .chosen-container .chosen-results { max-height: 300px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.category .chosen-container .chosen-single { display: block; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funiter-live-search-form .products-search, .funiter-live-search-form .not-results-search { z-index: 1000; }

/* ---- contact form ---- */
.asel-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.asel-consent { font-size: 14px; line-height: 1.5; margin: 10px 0 15px; }
.asel-consent input { margin-right: 6px; vertical-align: middle; }
.asel-consent a { text-decoration: underline; }
.wpcf7-form .wpcf7-not-valid-tip { display: block; color: #dc3232; font-size: 13px; margin-top: 4px; }
.wpcf7-form.submitting .wpcf7-submit { opacity: .6; }

/* ---- Google Maps consent placeholder ---- */
.asel-map-consent { display: flex; align-items: center; justify-content: center; min-height: 450px; padding: 30px; text-align: center; background: #f4f4f4 url(/wp-content/uploads/2019/06/harita2.jpg) center / cover; }
.asel-map-consent__inner { max-width: 460px; padding: 25px 30px; background: rgba(255,255,255,.95); border-radius: 5px; }
.asel-map-consent__inner p { margin-bottom: 15px; line-height: 1.6; }
.asel-map-consent .button { background: #d84345; color: #fff; border: 0; padding: 0 30px; line-height: 44px; border-radius: 3px; cursor: pointer; }
.wpb_map_wraper iframe, .wpb_text_column iframe { width: 100%; }
.asel-embed-consent { min-height: 500px; background: #f4f4f4; }

/* ---- legal pages ---- */
.asel-legal h3 { margin: 28px 0 12px; font-size: 20px; }
.asel-legal p, .asel-legal li { line-height: 1.75; }
.asel-legal ul, .asel-legal ol { padding-left: 22px; margin-bottom: 18px; }
.asel-legal table { width: 100%; margin: 15px 0 25px; border-collapse: collapse; font-size: 14px; }
.asel-legal th, .asel-legal td { border: 1px solid #e5e5e5; padding: 10px 12px; text-align: left; vertical-align: top; }
.asel-legal th { background: #f7f7f7; }
.asel-legal .asel-meta { color: #888; font-size: 13px; }

/* ---- vertical thumbnails (theme's slick vertical gallery) ---- */
.contain-left.has-gallery .woocommerce-product-gallery { display: flex; flex-direction: row-reverse; gap: 12px; align-items: flex-start; }
.contain-left.has-gallery .woocommerce-product-gallery .flex-viewport { flex: 1 1 auto; width: auto !important; float: none !important; margin: 0 !important; }
.contain-left.has-gallery .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs { flex: 0 0 100px; width: 100px !important; float: none !important; padding: 0 !important; max-height: 520px; overflow-y: auto; scrollbar-width: thin; }
.contain-left.has-gallery .woocommerce-product-gallery .flex-control-thumbs li { padding: 0 0 8px !important; width: 100% !important; }
.contain-left.has-gallery .woocommerce-product-gallery .flex-control-thumbs li img { display: block; border: 1px solid #efefef; opacity: .7; }
.contain-left.has-gallery .woocommerce-product-gallery .flex-control-thumbs li img.flex-active { opacity: 1; border-color: #d84345; }
@media (max-width: 767px) {
  .contain-left.has-gallery .woocommerce-product-gallery { flex-direction: column; }
  .contain-left.has-gallery .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs { flex-basis: auto; width: 100% !important; max-height: none; display: flex; gap: 8px; overflow-x: auto; }
  .contain-left.has-gallery .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 70px; padding: 0 !important; }
}

/* ---- cookie consent banner ---- */
.asel-cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 100000; display: flex; gap: 20px; align-items: center; max-width: 1170px; margin: 0 auto; padding: 18px 22px; background: #fff; color: #333; border-top: 3px solid #d84345; border-radius: 4px; box-shadow: 0 6px 30px rgba(0,0,0,.18); font-size: 13px; line-height: 1.55; }
.asel-cookie[hidden] { display: none; }
.asel-cookie p { margin: 0 0 6px; }
.asel-cookie p:last-child { margin-bottom: 0; color: #666; }
.asel-cookie a { color: #d84345; text-decoration: underline; }
.asel-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.asel-cookie__btn { min-width: 130px; padding: 0 18px; line-height: 40px; border-radius: 3px; border: 1px solid #222; font-size: 13px; cursor: pointer; background: #fff; color: #222; }
.asel-cookie__btn--accept { background: #d84345; border-color: #d84345; color: #fff; }
.asel-cookie__btn:hover { opacity: .88; }
.asel-cookie__btn:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
@media (max-width: 767px) { .asel-cookie { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; } .asel-cookie__actions { flex-direction: column-reverse; } .asel-cookie__btn { width: 100%; } }
