/* ==========================================================================
   KOTON EXACT PRODUCT DETAIL PAGE STYLING (PC & Mobile)
   ========================================================================== */

/* Breadcrumb */
.kt-breadcrumb {
    padding: 16px 0 20px;
    font-size: 11px;
    color: #767676;
    letter-spacing: 0.02em;
}
.kt-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.kt-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.kt-breadcrumb li:not(:last-child)::after {
    content: "/";
    color: #b0b0b0;
    font-size: 11px;
}
.kt-breadcrumb a {
    color: #555555;
    text-decoration: none;
    transition: color 0.15s ease;
}
.kt-breadcrumb a:hover {
    color: #000000;
}
.kt-breadcrumb li[aria-current="page"] {
    color: #000000;
    font-weight: 500;
}

/* Detail Layout Grid */
.kt-product-page {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 64px;
    padding: 0 32px;
}
.kt-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr);
    gap: 48px;
    align-items: start;
}

/* Gallery - Desktop (2-Column Grid / Stacked) */
.kt-detail-gallery {
    position: relative;
    width: 100%;
}
.kt-gallery-viewport {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
}
.kt-gallery-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f7f7f8;
    overflow: hidden;
}
.kt-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.kt-gallery-slide:hover .kt-gallery-main-img {
    transform: scale(1.03);
}

.kt-disc-badge-detail {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 8px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.kt-floating-fav-btn {
    display: none; /* Only on mobile */
}
.kt-mobile-gallery-dots {
    display: none; /* Only on mobile */
}

/* Right Column - Product Meta & Purchase */
.kt-detail-info {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    padding: 4px 0 32px;
}

.kt-product-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #111111;
    margin: 0 0 14px 0;
    letter-spacing: -0.01em;
}

/* Pricing */
.kt-price-box {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.kt-current-price {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
}
.kt-old-price {
    font-size: 16px;
    color: #888888;
    text-decoration: line-through;
}
.kt-discount-tag {
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 2px;
}

/* Koton Red Campaign Banner */
.kt-campaign-promo-banner {
    color: #c90000;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* SKU & Color Row */
.kt-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666666;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eeeeee;
}
.kt-meta-sep {
    color: #cccccc;
}

/* Color Thumbnails */
.kt-color-selection {
    margin-bottom: 24px;
}
.kt-color-selection-header {
    font-size: 12px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 10px;
}
.kt-color-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.kt-color-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    padding: 3px;
    border-radius: 3px;
    transition: border-color 0.15s ease;
}
.kt-color-thumb img {
    width: 52px;
    height: 68px;
    object-fit: cover;
    display: block;
}
.kt-color-thumb span {
    font-size: 10px;
    color: #666666;
    max-width: 52px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kt-color-thumb.is-active,
.kt-color-thumb:hover {
    border-color: #000000;
}
.kt-color-thumb.is-active span {
    color: #000000;
    font-weight: 600;
}

/* Size Selection Grid */
.kt-product-form {
    margin-bottom: 24px;
}
.kt-size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.kt-size-title {
    font-size: 13px;
    font-weight: 600;
    color: #111111;
}
.kt-size-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.kt-size-guide-btn:hover {
    color: #000000;
}

.kt-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: none;
    padding: 0;
    margin: 0 0 12px 0;
}
.kt-size-box {
    position: relative;
    cursor: pointer;
    margin: 0;
}
.kt-size-box input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.kt-size-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    color: #111111;
    border-radius: 2px;
    transition: all 0.15s ease;
}
.kt-size-box:hover .kt-size-label {
    border-color: #000000;
}
.kt-size-box input:checked + .kt-size-label {
    border-color: #000000;
    background: #000000;
    color: #ffffff;
}
.kt-size-box.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
.kt-size-box.is-disabled .kt-size-label {
    background: #f8f8f8;
    border-color: #eeeeee;
    text-decoration: line-through;
    color: #999999;
}
.kt-stock-pill {
    font-size: 9px;
    font-weight: 700;
    color: #e53935;
    margin-top: 2px;
}
.kt-size-box input:checked + .kt-size-label .kt-stock-pill {
    color: #ffcdd2;
}

/* Action Buttons */
.kt-main-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.kt-btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
}
.kt-btn-add-to-cart {
    flex: 1;
    height: 50px;
    background: #000000 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kt-btn-add-to-cart:hover:not(:disabled) {
    background: #222222 !important;
}
.kt-btn-add-to-cart:active:not(:disabled) {
    transform: scale(0.99);
}
.kt-btn-add-to-cart:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
}

.kt-desktop-fav-btn {
    width: 50px;
    height: 50px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    cursor: pointer;
    color: #222222;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    padding: 0;
}
.kt-desktop-fav-btn:hover {
    border-color: #000000;
}
.kt-desktop-fav-btn.is-active,
.kt-desktop-fav-btn[aria-pressed="true"] {
    background: #fff0f0;
    border-color: #e53935;
    color: #e53935;
}
.kt-desktop-fav-btn svg {
    width: 22px;
    height: 22px;
}

/* White Button: Giriş Yap ve Üzerinde Dene (Koton Screenshot 4) */
.kt-btn-try-on {
    width: 100%;
    height: 46px;
    border: 1.5px solid #000000;
    background: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}
.kt-btn-try-on:hover {
    background: #000000;
    color: #ffffff;
}

/* Benefits List */
.kt-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 28px;
    padding: 16px;
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
}
.kt-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #444444;
}
.kt-benefit-item svg {
    width: 18px;
    height: 18px;
    color: #000000;
    flex-shrink: 0;
}

/* Accordions (Clean Koton Style with Plus/Minus) */
.kt-accordions {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #eeeeee;
    margin-top: 8px;
}
.kt-accordion-item {
    border-bottom: 1px solid #eeeeee;
    padding: 0;
    margin: 0;
}
.kt-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    font-size: 13px;
    font-weight: 600;
    color: #111111;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.kt-accordion-header::-webkit-details-marker {
    display: none;
}
.kt-acc-icon {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #555555;
    transition: transform 0.2s ease;
}
.kt-accordion-item[open] .kt-acc-icon {
    transform: rotate(45deg);
}
.kt-accordion-body {
    padding: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #555555;
}
.kt-spec-table {
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 8px;
    column-gap: 16px;
    margin: 0;
    font-size: 12px;
}
.kt-spec-table dt {
    color: #888888;
    font-weight: 500;
}
.kt-spec-table dd {
    color: #111111;
    margin: 0;
    font-weight: 600;
}

/* Contact Order */
.kt-contact-order {
    margin-top: 20px;
}
.kt-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #128c7e;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.kt-btn-wa svg {
    width: 20px;
    height: 20px;
}

/* Recommendations Section */
.kt-recommendations-section {
    max-width: 1440px;
    margin: 48px auto 0;
    padding: 0 32px;
}
.kt-rec-heading {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}
.kt-rec-heading h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Sticky Bottom Mobile Bar */
.kt-mobile-sticky-bar {
    display: none;
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .kt-product-page {
        padding: 0 0 48px 0;
        margin-bottom: 0;
    }
    .kt-breadcrumb {
        padding: 10px 16px;
        font-size: 10px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .kt-detail-layout {
        display: block;
    }

    /* Mobile Swipeable Full-Width Gallery */
    .kt-detail-gallery {
        position: relative;
        width: 100%;
        overflow: hidden;
    }
    .kt-gallery-viewport {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        width: 100%;
    }
    .kt-gallery-viewport::-webkit-scrollbar {
        display: none;
    }
    .kt-gallery-slide {
        flex: 0 0 100%;
        width: 100%;
        aspect-ratio: 3 / 4;
        scroll-snap-align: start;
        border-radius: 0;
    }
    .kt-gallery-main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Floating Wishlist Heart on Mobile (Top Right of Hero Photo) */
    .kt-floating-fav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.9);
        border: none;
        border-radius: 50%;
        color: #111111;
        cursor: pointer;
        z-index: 5;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        padding: 0;
    }
    .kt-floating-fav-btn.is-active,
    .kt-floating-fav-btn[aria-pressed="true"] {
        color: #e53935;
        background: #ffffff;
    }
    .kt-floating-fav-btn svg {
        width: 22px;
        height: 22px;
    }

    /* Mobile Segment / Dot Indicators at Bottom of Gallery */
    .kt-mobile-gallery-dots {
        position: absolute;
        bottom: 12px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        z-index: 4;
        pointer-events: none;
    }
    .kt-gallery-dot {
        width: 20px;
        height: 2.5px;
        background: rgba(0, 0, 0, 0.25);
        border-radius: 2px;
        transition: background 0.2s, width 0.2s;
    }
    .kt-gallery-dot.is-active {
        background: #000000;
        width: 28px;
    }

    /* Left-aligned Content Padding */
    .kt-detail-info {
        padding: 18px 16px 32px;
        position: static;
        text-align: left;
    }

    .kt-product-title {
        font-size: 15px;
        line-height: 1.35;
        margin-bottom: 10px;
    }
    .kt-price-box {
        gap: 10px;
        margin-bottom: 8px;
    }
    .kt-current-price {
        font-size: 20px;
    }
    .kt-campaign-promo-banner {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .kt-meta-row {
        font-size: 11px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .kt-size-label {
        min-width: 44px;
        height: 40px;
        font-size: 12px;
        padding: 0 10px;
    }
    .kt-btn-row {
        flex-direction: row;
    }
    .kt-desktop-fav-btn {
        display: none; /* Mobile uses floating button on photo */
    }
    .kt-btn-add-to-cart {
        height: 48px;
        font-size: 14px;
    }
    .kt-btn-try-on {
        height: 44px;
        font-size: 13px;
    }

    .kt-accordions {
        margin-top: 14px;
    }
    .kt-accordion-header {
        padding: 14px 0;
        font-size: 13px;
    }

    .kt-recommendations-section {
        padding: 0 16px;
        margin-top: 24px;
    }

    /* Sticky Bottom Buy Bar on Mobile */
    .kt-mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        z-index: 99;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    }
    .kt-sticky-meta {
        display: flex;
        flex-direction: column;
        max-width: 60%;
    }
    .kt-sticky-title {
        font-size: 11px;
        color: #666666;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .kt-sticky-price {
        font-size: 15px;
        font-weight: 800;
        color: #000000;
    }
    .kt-sticky-buy-btn {
        height: 42px;
        padding: 0 20px;
        background: #000000 !important;
        color: #ffffff !important;
        font-size: 13px;
        font-weight: 700;
        border: none;
        border-radius: 2px;
        cursor: pointer;
    }
}
