/* ============================================================
   Ürün Detay Sayfası CSS - CavsaWEB'den uyarlandı
   ============================================================ */

/* --- CSS Değişkenleri --- */
:root {
    --dp-theme: #045fa9;
    --dp-title: #0B1422;
    --dp-body: #6E7070;
    --dp-smoke: #F2F5FA;
    --dp-white: #ffffff;
}

/* --- Breadcrumb --- */
.breadcumb-wrapper {
    position: relative;
    background-color: #0B1422;
    background-position: center center;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.breadcumb-wrapper::before {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: "";
    background: rgba(11, 20, 34, 0.55);
}

.breadcumb-content {
    position: relative;
    z-index: 2;
}

.breadcumb-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcumb-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcumb-menu li {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
}

.breadcumb-menu li::after {
    content: " /";
    margin-left: 8px;
    color: rgba(255,255,255,0.5);
}

.breadcumb-menu li:last-child::after {
    display: none;
}

.breadcumb-menu a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.breadcumb-menu a:hover {
    color: #fff;
}

/* --- Spacing --- */
.space-top {
    padding-top: 80px;
}

.space-extra-bottom {
    padding-bottom: 80px;
}

/* --- Product Big Image --- */
.product-big-img {
    background-color: #F2F5FA;
    text-align: center;
    overflow: hidden;
    border-radius: 16px;
}

.product-big-img .img {
    width: 100%;
    border-radius: 16px;
    position: relative;
}

.product-big-img .img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    transition: 0.4s ease-in-out;
    cursor: pointer;
}

/* Prev/Next navigasyon okları */
.main-img-prev,
.main-img-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    z-index: 5;
    text-decoration: none;
    user-select: none;
    line-height: 1;
    transition: background 0.2s;
}

.main-img-prev { left: 10px; }
.main-img-next { right: 10px; }
.main-img-prev:hover,
.main-img-next:hover { background: rgba(255,255,255,1); }

/* --- Product Thumbnails (Swiper) --- */
.product-thumbnails {
    margin-top: 12px;
}

.product-thumbnails .swiper-slide {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-thumbnails .swiper-slide:hover {
    border-color: #045fa9;
}

.product-thumbnails .swiper-slide img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 6px;
    display: block;
}

/* --- Product About (Right Column) --- */
.product-about .product-title {
    font-size: 28px;
    font-weight: 700;
    color: #0B1422;
    margin: 0 0 10px 0;
}

.product-about > .price {
    font-size: 16px;
    font-weight: 700;
    color: #045fa9;
    display: block;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-about .text {
    color: #6E7070;
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-about .actions .th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 30px;
    background-color: #045fa9;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-about .actions .th-btn:hover {
    background-color: #034a87;
    color: #fff;
}

/* --- Color Picker --- */
.product-color-picker {
    margin-top: 20px;
}

.d-flex.flex-wrap.gap-2 {
    gap: 10px !important;
}

.color-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #ccc;
    background: #fff;
    padding: 10px 8px 8px;
    border-radius: 12px;
    transition: border-color .2s, box-shadow .2s;
    min-width: 70px;
    gap: 8px;
    margin: 0;
}

.color-btn:hover { border-color: #888; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.color-btn.active { border-color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
.color-swatch { width: 40px; height: 40px; border-radius: 50%; display: block; border: 2px solid rgba(0,0,0,0.10); }
.color-name { font-size: 11px; color: #333; white-space: nowrap; text-align: center; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }

/* --- Product Meta --- */
.product_meta {
    font-weight: 700;
    font-size: 15px;
    margin: 25px 0 0 0;
}

.product_meta > span {
    display: block;
    margin-bottom: 5px;
    color: #0B1422;
    font-weight: bold;
}

.product_meta > span a {
    color: #6E7070;
    font-weight: 400;
    text-decoration: none;
}

.product_meta > span a:hover { color: #045fa9; }

/* --- Product Tab Style2 --- */
.product-tab-style2 {
    border-bottom: 1px solid #e4e4e4;
    margin: 60px 0 30px 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.product-tab-style2 li {
    margin: 0 45px 0 0;
}

.product-tab-style2 li:last-child { margin-right: 0; }

.product-tab-style2 a {
    color: #0B1422;
    font-size: 18px;
    font-weight: 600;
    display: inline-block;
    position: relative;
    padding: 0 0 15px 0;
    text-decoration: none;
}

.product-tab-style2 a:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background-color: #045fa9;
    transition: all ease 0.4s;
}

.product-tab-style2 a.active:before { width: 100%; }
.product-tab-style2 a.active { color: #045fa9; }

/* --- Elegant Table --- */
.cp-elegant-table-container {
    max-width: 100%;
    margin: 30px auto;
    overflow-x: auto;
}

.cp-elegant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.cp-elegant-table thead {
    background: linear-gradient(135deg, #e8f1ff, #ffffff);
}

.cp-elegant-table th {
    padding: 16px 12px;
    font-weight: 700;
    color: #0b3b8c;
    text-align: center;
    border-bottom: 1px solid #e5e9f2;
    white-space: nowrap;
}

.cp-elegant-table td {
    padding: 14px 12px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.25s ease;
}

.cp-elegant-table tbody tr:hover { background: #f7fbff; }

.cp-elegant-icon {
    margin-right: 5px;
    color: #0d6efd;
    font-size: 14px;
}

@media (max-width: 767px) {
    .cp-elegant-table thead { display: none; }
    .cp-elegant-table,
    .cp-elegant-table tbody,
    .cp-elegant-table tr,
    .cp-elegant-table td {
        display: block;
        width: 100%;
    }
    .cp-elegant-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }
    .cp-elegant-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-weight: 700;
        color: #0b3b8c;
    }
    .breadcumb-title { font-size: 30px; }
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px; right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-style: normal;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- GX-60 gap (Bootstrap override) --- */
.gx-60 { --bs-gutter-x: 2rem; }
@media (min-width: 992px) {
    .gx-60 { --bs-gutter-x: 3.75rem; }
}
