/* Product detail: touch-first layout, isolated from category and desktop pages. */
.pd .option:focus-visible { outline: 2px solid #63834f; outline-offset: 3px; }
.pd .varyant_row.pd-needs-selection { outline: 2px solid #c6ab7a; outline-offset: 6px; border-radius: 8px; }
.pd .pd-selection-help { float: none; width: 100%; margin: -5px 0 12px; font-size: 12px; font-weight: 500; color: #89652e; line-height: 1.5; }
.pd-alert-container.swal2-container { z-index: 100100; padding: 20px; background: rgba(22,35,20,.46); backdrop-filter: blur(4px); }
.pd-selection-alert.swal2-popup { width: 430px; max-width: 100%; padding: 26px 24px 24px; border: 1px solid #e0e8d8; border-radius: 24px; box-shadow: 0 24px 80px #17271030; font-family: inherit; }
.pd-selection-alert .swal2-icon { width: 54px; height: 54px; margin: 0 auto 18px; border: 1px solid #dbe5d1; background: #eef4e7; color: #476b33; }
.pd-selection-alert .swal2-icon .swal2-icon-content { font-size: 32px; font-weight: 500; }
.pd-selection-alert .swal2-title { padding: 0; color: #283d23; font-size: 23px; font-weight: 600; letter-spacing: -.5px; line-height: 1.35; }
.pd-selection-alert .swal2-html-container { margin: 13px 0 0; color: #77826e; font-size: 13px; line-height: 1.65; }
.pd-selection-alert .swal2-html-container p { float: none; margin: 0 0 18px; }
.pd-selection-alert .pd-alert-list { float: none; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; text-align: left; }
.pd-selection-alert .pd-alert-list li { float: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; border: 1px solid #e5eadf; border-radius: 12px; background: #f7f9f3; color: #3e5035; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.pd-selection-alert .pd-alert-list li::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #90a778; }
.pd-selection-alert .swal2-actions { width: 100%; margin: 20px 0 0; }
.pd-selection-alert .pd-alert-confirm { float: none; width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: #284e20; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pd-selection-alert .pd-alert-confirm:hover { background: #1d3c16; }
.pd-selection-alert .pd-alert-confirm:focus-visible { outline: 3px solid #99b07f; outline-offset: 3px; }
.pd-selection-alert .swal2-close { top: 12px; right: 12px; width: 36px; height: 36px; border: 1px solid #e5eadf; border-radius: 50%; color: #7b8772; font-size: 25px; }
@media (max-width: 600px) {
    .pd-alert-container.swal2-container { padding: 16px; }
    .pd-selection-alert.swal2-popup { padding: 24px 18px 18px; border-radius: 20px; }
    .pd-selection-alert .swal2-title { font-size: 21px; }
    .pd-selection-alert .swal2-close { width: 44px; height: 44px; top: 8px; right: 8px; }
}
@media (max-width: 1023px) {
    body.product-detail-page { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
    .product-detail-page .pd > .wrap { padding: 0 8px; }
    .product-detail-page .pd { padding-bottom: 30px; }
    .pd-layout { gap: 24px; }
    .pd-main-col, .pd-side { min-width: 0; }
    .pd-buy { padding: 22px 18px 20px; border: 0; border-radius: 20px; box-shadow: none; }
    .pd .pd-title { font-size: 23px; line-height: 1.3; }
    .pd-price-wrap { margin: 18px 0; padding: 17px 0; }
    .pd .price-container { gap: 8px; flex-wrap: wrap; }
    .pd .current-price { font-size: 29px; white-space: nowrap; }
    .pd .old-price { font-size: 12px; }
    .pd .price-suffix { font-size: 10px; }
    .pd .varyant_row { margin-bottom: 22px; }
    .pd .varyant_row.pd-needs-selection { outline: 2px solid #b89b66; outline-offset: 6px; border-radius: 8px; }
    .pd .varyant_label { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.6; letter-spacing: .3px; margin-bottom: 12px; }
    .pd .info_icon { flex-shrink: 0; }
    .pd .options_container { gap: 8px; }
    .pd .options_container:has(.icon_container) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
    .pd .option:has(.icon_container),
    .pd .option:has(.icon_container):hover,
    .pd .option.selected:has(.icon_container) { width: 100%; min-width: 0; min-height: 86px; padding: 9px 3px 6px; gap: 8px; border: 1px solid transparent; border-radius: 11px; }
    .pd .option.selected:has(.icon_container) { background: #f1f6eb; border-color: #d7e3ce; }
    .pd .icon_container { width: 44px; height: 44px; flex-shrink: 0; }
    .pd .option:has(.icon_container) .option_label { font-size: 11px; line-height: 1.3; overflow: visible; }
    .pd .option.selected:has(.icon_container) .check_mark { width: 16px; height: 16px; top: 41px; right: calc(50% - 27px); }
    .pd .option.selected:has(.icon_container) .check_mark::after { left: 3px; top: 1px; width: 4px; height: 7px; }
    .pd .options_container:not(:has(.icon_container)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pd .option:not(:has(.icon_container)) { min-height: 48px; padding: 10px 9px; border-radius: 11px; gap: 6px; flex-wrap: wrap; }
    .pd .option_label { font-size: 12px; }
    .pd .pd-check, .pd select { min-height: 46px; }
    .pd .pd-wa, .pd .add-to-cart-btn { min-height: 48px; border-radius: 12px; }
    .pd-mobilebar { gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); min-height: 74px; }
    .pd-mobilebar-price { min-width: 0; display: grid; gap: 4px; }
    .pd-mobilebar-price small { font-size: 9px; letter-spacing: .4px; }
    .pd-mobilebar-price .varMoney { font-size: 19px; line-height: 1.2; white-space: nowrap; }
    .pd-mobilebar-btn { justify-content: center; min-width: 140px; min-height: 46px; padding: 0 16px; border-radius: 12px; background: #284e20; box-shadow: 0 4px 10px #284e201a; font-size: 11px; letter-spacing: .3px; }
    /* The product already has a prominent WhatsApp action beside purchase. */
    .product-detail-page .connect-whatsapp { display: none; }
    .product-detail-page .cookies-wrap { bottom: calc(84px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }
    .product-detail-page .cookies { padding: 14px 38px 14px 14px; font-size: 11px; line-height: 1.55; border-radius: 12px; }
    .product-detail-page .cookies-close { top: 8px; right: 8px; }
    .pd-service .pd-trust li { min-height: 118px; }
    .pd-family { padding: 30px 0; }
}
@media (max-width: 900px) {
    .pd-gallery .slider-hero-product { padding-left: 0; }
    .pd-gallery .slider-hero-product-item a { aspect-ratio: 1.15; padding: 32px 8px 12px; border-radius: 16px; }
    .pd-gallery .slider-hero-product .slick-list { border-radius: 16px; }
    .pd-gallery .slick-prev, .pd-gallery .slick-next { display: none !important; }
    .pd-gallery ul.slick-dots { position: static; flex-direction: row; width: 100%; margin-top: 18px; gap: 8px; padding: 4px 2px; overflow-x: auto; overflow-y: hidden; mask-image: none; -webkit-mask-image: none; }
    .pd-gallery ul.slick-dots li { width: 54px; height: 54px; flex-basis: 54px; }
    .pd-gallery ul.slick-dots li button { padding: 5px; border-radius: 10px; background-size: contain !important; background-color: #fafbf8; }
    .pd-gallery .pd-zoom { top: 10px; right: 10px; bottom: auto; width: 44px; height: 44px; box-shadow: 0 2px 8px #243d1910; }
    .pd-gallery .pd-counter { top: 18px; right: 64px; font-size: 10px; }
    .pd-gallery .pd-discount { top: 0; left: 0; padding: 8px 13px 8px 16px; font-size: 13px; border-radius: 16px 0 14px 0; }
}
@media (max-width: 700px) {
    .product-detail-page .sf { margin-top: 30px; }
    .product-detail-page .sf-cta .wrap { padding: 26px 20px; gap: 18px; }
    .product-detail-page .sf-cta-metin h2 { font-size: 21px; line-height: 1.4; margin-top: 8px; }
    .product-detail-page .sf-cta-metin p { font-size: 13px; line-height: 1.7; }
    .product-detail-page .sf-cta-butonlar { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .product-detail-page .sf-cta .sf-btn { width: 100%; min-width: 0; min-height: 46px; padding: 12px; border-radius: 12px; font-size: 13px; }
    .product-detail-page .sf-guvence .wrap { padding: 0 20px; }
    .product-detail-page .sf-guvence ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .product-detail-page .sf-guvence li,
    .product-detail-page .sf-guvence li + li { min-width: 0; padding: 18px 0; border-left: 0; gap: 8px; }
    .product-detail-page .sf-guvence li strong { font-size: 11px; }
    .product-detail-page .sf-guvence li small { font-size: 10px; }
    .product-detail-page .sf-guvence li > i { font-size: 18px; width: 20px; flex-shrink: 0; }
}
@media (max-width: 359px) {
    .product-detail-page .pd > .wrap { padding: 0 12px; }
    .pd-mobilebar { padding-left: 12px; padding-right: 12px; gap: 8px; }
    .pd-mobilebar-price .varMoney { font-size: 17px; }
    .pd-mobilebar-btn { min-width: 124px; padding: 0 12px; font-size: 10px; }
    .pd .option:has(.icon_container) .option_label { font-size: 10px; }
}
@media (hover: none) {
    .product-detail-page .varyant-tooltip { display: none !important; }
    .pd .option:has(.icon_container):hover .icon_container { transform: none; }
}
