/* Product detail page — static styles (extracted from stitch/product.blade.php; keep load order: pushed to @stack('styles')). */
/* Vertical swiper pagination — override Swiper 11 CSS variables */
.gallery-vertical-swiper {
    --swiper-pagination-color: #000000;
    --swiper-pagination-bullet-inactive-color: #626262;
    --swiper-pagination-bullet-inactive-opacity: 1;
    --swiper-pagination-bullet-size: 8px;
    height: 100%;
}
.gallery-vertical-swiper .swiper-wrapper,
.gallery-vertical-swiper .swiper-slide {
    height: 100% !important;
}
/* Fade swiper hides all slides until init — keep first slide visible as LCP fallback */
.gallery-vertical-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}
.gallery-vertical-swiper:not(.swiper-initialized) .swiper-slide:first-child {
    opacity: 1 !important;
}
.gallery-grid-dynamic,
.single-image-container[data-fixed-ratio="true"] {
    overflow: hidden;
}
#mobile-gallery [data-fixed-ratio="true"] img:not(.blur-lg):not(.gallery-dwg-icon),
#desktop-gallery [data-fixed-ratio="true"] img:not(.blur-lg):not(.gallery-dwg-icon) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center center;
}
.swiper-pagination-vertical.swiper-pagination-bullets { 
    right: 16px !important;
    background: #ffffff66!important;
    border-radius: 999px !important;
    padding: 2px 4px !important;
}
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet {
    background: #8d8d8d !important;
    opacity: 1 !important;
}
.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background: #000000 !important;
    opacity: 1 !important;
}
/* Mobile vertical gallery: one adaptive progress rail instead of a pill of dots. */
#mobile-gallery .gallery-vertical-swiper > .swiper-pagination-progressbar {
    top: 50% !important;
    right: 16px !important;
    bottom: auto !important;
    left: auto !important;
    width: 7px !important;
    height: clamp(132px, 34vw, 180px) !important;
    overflow: hidden;
    transform: translateY(-50%);
    border-radius: 999px;
    outline: 0;
    background: rgb(255 255 255 / 80%) !important;
    -webkit-backdrop-filter: invert(0.50);
    backdrop-filter: invert(0.50);
    box-shadow: 0px 0px 0px 4px #ffffff;
}
#mobile-gallery .gallery-vertical-swiper > .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    z-index: 1;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform-origin: top center;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px 999px 0 0;
    background: #131313 !important;
    box-shadow: none !important;
}
.gallery-vertical-thumbs {
    display: flex;
    width: 100%;
    height: 50px;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    background: #ffffff;
    scrollbar-width: none;
}
.gallery-vertical-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-vertical-thumb {
    position: relative;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    opacity: 0.48;
}
.gallery-vertical-thumb.is-active {
    opacity: 1;
}
.gallery-vertical-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: cover;
}
/* Mobile buy bar: viewport-fixed (not sticky). Lives on <body> via x-teleport. */
.pdp-mobile-buybar {
    --pdp-atc-height: 38px;
    position: fixed !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    z-index: 1000;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    /* Own compositor layer — avoids iOS “sticky-like” scroll coupling */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
@media (max-width: 1023px) {
    .product-container {
        padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .pdp-mobile-buybar {
        display: flex;
    }
    .pdp-mobile-buybar__price {
        margin: 0 !important;
    }
    .pdp-mobile-buybar__prices {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        align-items: flex-start;
        justify-content: center;
        gap: 0;
        min-width: 0;
    }
    .pdp-mobile-buybar__price {
        line-height: 1 !important;
    }
    .pdp-mobile-buybar .pdp-mobile-buybar__price {
        font-size: 18px !important;
    }
    .pdp-mobile-buybar__price.is-range {
        font-size: 13px !important;
        letter-spacing: -0.02em;
    }
    .pdp-mobile-buybar__list-price {
        order: -1;
        margin: 0 !important;
        padding: 0;
        color: #8b8b8b;
        font-size: 9px;
        font-weight: 600;
        line-height: 1;
        text-decoration: line-through;
        white-space: nowrap;
    }
    .pdp-mobile-buybar .product-add-to-cart {
        order: 3;
        flex: 1 1 108px;
        min-width: 0;
        font-size: 12px !important;
    }
    .pdp-mobile-buybar .product-ask-btn {
        order: 2;
        height: 38px;
        padding-right: 4px;
        padding-left: 4px;
        gap: 5px;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--primary-color) !important;
        font-size: 11px;
        margin-right: 8px;
    }
    .pdp-mobile-buybar .product-ask-btn__icon {
        display: block;
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
    }
    .product-add-to-cart .pdp-option-icon,
    .product-add-to-cart-label .pdp-option-icon {
        font-size: 16px !important;
        line-height: 1;
        transform: translateY(2px);
    }
    .product-add-to-cart.is-atc-locked,
    .product-add-to-cart.is-atc-locked:hover {
        cursor: not-allowed;
        transform: none !important;
        transition: none !important;
    }
    .product-add-to-cart.is-atc-locked .product-add-to-cart-label {
        cursor: not-allowed;
    }
    .product-add-to-cart.is-atc-locked .product-atc-copy {
        opacity: 0.55 !important;
    }
    .pdp-mobile-buybar__split-qty {
        order: 1;
        height: 38px !important;
        padding-right: 2px !important;
        padding-left: 2px !important;
    }
    .pdp-mobile-buybar__split-qty > button {
        width: 30px !important;
        height: 30px !important;
    }
    .pdp-mobile-buybar__split-qty > div {
        width: 16px !important;
    }
}
.product-gallery-main .swiper-slide {
    height: auto;
}
.thumbs-swiper .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
}
.thumbs-swiper .swiper-slide-thumb-active {
    opacity: 1;
}
/* Side thumbs (left column) — plain CSS scroll, no Swiper needed */
.side-thumbs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 88px;
    flex-shrink: 0;
    padding: 4px;        /* room for outline without clipping */
    min-height: 0;
    max-height: 100%;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    order: -1; /* DOM: main first (LCP), visual: thumbs stay left */
}
.side-thumbs-list.is-dragging { cursor: grabbing; }
.side-thumbs-list::-webkit-scrollbar { display: none; }
.side-thumb-item {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.25s, outline-color 0.25s;
    cursor: pointer;
    border-radius: var(--gallery-radius, var(--pdp-gallery-thumb-radius, 8px)) !important;
    overflow: hidden;
    outline: 2px solid transparent;
    outline-offset: 2px;
    background-color: #f5f5f5;
}
.dark .side-thumb-item {
    background-color: #1a120b;
}
.side-thumb-item img {
    background-color: #f5f5f5;
}
.dark .side-thumb-item img {
    background-color: #1a120b;
}
.side-thumb-item.active {
    opacity: 1;
    outline-color: #181411;
}
.dark .side-thumb-item.active {
    outline-color: rgba(255,255,255,0.8);
}
.variant-value-label {
    font-weight: 700 !important;
    color: var(--text-light) !important;
}
.variant-value-label.is-selected,
.group:hover .variant-value-label {
    color: var(--text-main) !important;
}
.variant-option-button-selected {
    color: var(--text-main) !important;
}
.variant-check-indicator {
    background-color: var(--primary-color) !important;
    color: var(--text-main) !important;
}
.pdp-wishlist--beside {
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
}
.pdp-wishlist__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color .15s ease, background .15s ease, border-color .15s ease;
}
/* Yan yana: yapısal boyut; renkler product-dynamic-css’ten gelir */
.pdp-wishlist__btn--beside {
    box-sizing: border-box;
    height: var(--pdp-atc-height, 52px);
    min-height: var(--pdp-atc-height, 52px);
    width: auto;
    min-width: var(--pdp-atc-height, 52px);
    padding: 0 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
}
.pdp-wishlist__btn--beside.pdp-wishlist__btn--icon-only {
    width: var(--pdp-atc-height, 52px);
    min-width: var(--pdp-atc-height, 52px);
    padding: 0;
    flex-shrink: 0;
}
.pdp-wishlist__btn--beside .pdp-wishlist__icon {
    font-size: 22px;
    color: inherit;
}
.pdp-wishlist__btn--below {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.pdp-wishlist__icon { font-size: 20px; line-height: 1; }
.pdp-wishlist__label { white-space: nowrap; }
/* Stok + Favoriler aynı satır (referans: sol stok / sağ favori) */
.product-stock-wishlist-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    gap: 12px;
    min-height: 28px;
}
.product-stock-wishlist-row .product-stock-status {
    flex: 1 1 auto;
    min-width: 0;
}
.product-stock-wishlist-row .pdp-wishlist--below {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
}
/* Sepete ekle + favori satırı */
.product-atc-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: var(--pdp-wishlist-gap, 12px);
}
.product-atc-row > .product-add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
}
.product-atc-row > .pdp-wishlist--beside {
    flex: 0 0 auto;
    display: flex;
    align-self: stretch;
}
.product-atc-row > .pdp-wishlist--beside .pdp-wishlist__btn--beside {
    height: var(--pdp-atc-height, 52px) !important;
    min-height: var(--pdp-atc-height, 52px) !important;
}
@media (max-width: 1023px) {
    .gallery-no-padding { margin-left: 0; margin-right: 0; }
    .product-container,
    .product-main-grid,
    .product-gallery,
    .product-details-container {
        max-width: 100%;
        min-width: 0;
    }
    .product-container {
        overflow-x: hidden;
    }
}
@media (min-width: 1024px) {
    .product-main-grid { padding-top: 20px; }
    .product-gallery { padding-top: 0; }
    .product-details-container { padding-top: 2px !important; }
    .product-details-container > .product-breadcrumb { margin-top: 0 !important; }
}
#product-form input[type="text"],
#product-form input[type="number"],
#product-form input[type="email"],
#product-form input[type="tel"],
#product-form input[type="search"],
#product-form input[type="url"],
#product-form textarea,
#product-form select {
    font-size: 16px !important;
}

/* Breadcrumb / tabs horizontal scrollers (was duplicated inline twice) */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Beden tablosu modal içeriği (storefront_feature('size_guide')) */
.sf-size-guide-content table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sf-size-guide-content th,
.sf-size-guide-content td { padding: 8px 10px; border: 1px solid rgb(0 0 0 / 0.08); text-align: center; white-space: nowrap; }
.sf-size-guide-content th { font-weight: 800; background: rgb(0 0 0 / 0.03); }
.dark .sf-size-guide-content th,
.dark .sf-size-guide-content td { border-color: rgb(255 255 255 / 0.1); }
.dark .sf-size-guide-content th { background: rgb(255 255 255 / 0.05); }
.sf-size-guide-content p { margin: 0 0 0.75em; }
.sf-size-guide-content img { max-width: 100%; height: auto; }

/* PDP "Bilgi sütunu kaydırırken sabit kalsın" (visual_settings.info_sticky) — desktop only.
   Sticks only when the info column is shorter than the gallery column. */
@media (min-width: 1024px) {
    .product-info-sticky.pdp-info-sticky-on {
        position: sticky;
        top: 120px;
    }
}
