/* ============================================================
   PRODUCT PAGE
============================================================ */

.product-page {
    width: 100%;
    float: left;
    position: relative;

    background:
        radial-gradient(
            circle at 90% 10%,
            #f7eadd 0px,
            transparent 280px
        ),
        #fffaf5;

    padding-top: 135px;
    padding-bottom: 70px;

    box-sizing: border-box;
    overflow: hidden;
}


/* ============================================================
   HEADER ARKA PLANI
   Header fixed + transparent olduğu için
============================================================ */

.product-header-background {
    position: absolute;

    width: 100%;
    height: 100px;

    top: 0;
    left: 0;

    background-color: #6f1017;

    z-index: 0;
}


/* ============================================================
   PRODUCT PAGE RESET
   base.css içindeki global beyaz renkleri eziyoruz
============================================================ */

.product-page *,
.product-lightbox * {
    box-sizing: border-box;
}

.product-page,
.product-page div,
.product-page p,
.product-page span,
.product-page h1,
.product-page h2,
.product-page strong,
.product-page ul,
.product-page li,
.product-page button,
.product-page a {
    color: #252025;
}

.product-page a,
.product-page button,
.product-page img {
    cursor: pointer;
}


/* ============================================================
   CONTAINER
============================================================ */

.product-container {
    width: 1440px;

    margin-left: auto;
    margin-right: auto;

    position: relative;

    z-index: 1;
}


/* ============================================================
   ANA ÜRÜN ALANI
============================================================ */

.product-main {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.03fr)
        minmax(0, 0.97fr);

    gap: 55px;

    align-items: start;
}

.product-gallery,
.product-information {
    min-width: 0;
}


/* ============================================================
   ÜRÜN GALERİSİ
============================================================ */

.product-gallery {
    width: 100%;
}

.product-main-image-wrapper {
    width: 100%;

    aspect-ratio: 1 / 1;

    position: relative;

    overflow: hidden;

    border-radius: 18px;

    background-color: #eee8e2;

    border: 1px solid #dbc39f;

    box-shadow:
        0 12px 35px rgba(46, 29, 20, 0.10);

    cursor: zoom-in;
}


/* ============================================================
   BULANIK ARKA PLAN
   Fotoğraf hangi oranda olursa olsun boş alanları doldurur
============================================================ */

.product-main-image-blur {
    position: absolute;

    width: 120%;
    height: 120%;

    left: -10%;
    top: -10%;

    display: block;

    object-fit: cover;

    filter: blur(25px);

    transform: scale(1.12);

    opacity: 0.68;

    z-index: 0;

    pointer-events: none;

    transition:
        transform 0.5s ease,
        opacity 0.25s ease;
}


.product-main-image-wrapper::after {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    left: 0;
    top: 0;

    z-index: 1;

    background-color: rgba(255, 255, 255, 0.08);

    pointer-events: none;
}


/* ============================================================
   GERÇEK ÜRÜN FOTOĞRAFI
   contain = hiçbir tarafı kırpılmaz
============================================================ */

.product-main-image {
    position: absolute;

    width: 100%;
    height: 100%;

    left: 0;
    top: 0;

    z-index: 2;

    display: block;

    object-fit: contain;
    object-position: center;

    pointer-events: none;

    transition:
        transform 0.45s ease,
        opacity 0.25s ease;
}


.product-main-image-wrapper:hover .product-main-image {
    transform: scale(1.018);
}


.product-main-image-wrapper:hover .product-main-image-blur {
    transform: scale(1.17);
}


.product-main-image-wrapper:focus-visible {
    outline: 3px solid #a31e25;
    outline-offset: 3px;
}


/* ============================================================
   KÜÇÜK FOTOĞRAFLAR
============================================================ */

.product-thumbnails {
    width: 100%;

    margin-top: 16px;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}

.product-thumbnail {
    width: 100%;

    aspect-ratio: 1 / 0.75;

    padding: 3px;

    border: 2px solid transparent;

    border-radius: 10px;

    overflow: hidden;

    background-color: #f1ece7;

    opacity: 0.78;

    transition:
        border-color 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.product-thumbnail:hover {
    opacity: 1;

    transform: translateY(-2px);
}

.product-thumbnail.active {
    border-color: #a31e25;

    opacity: 1;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    border-radius: 6px;

    display: block;
}


/* ============================================================
   ÜRÜN BİLGİLERİ
============================================================ */

.product-information {
    width: 100%;

    padding-top: 15px;
}


/* ============================================================
   KATEGORİ
============================================================ */

.product-category {
    width: fit-content;
    max-width: 100%;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 10px 17px;

    margin-bottom: 20px;

    border-radius: 30px;

    background-color: #f7ebdd;

    font-family: Georgia, serif;

    letter-spacing: 2px;

    text-transform: uppercase;

    font-size: 14px;
}

.product-category i,
.product-category span {
    color: #754417;
}

.product-category span {
    overflow-wrap: break-word;
}


/* ============================================================
   ÜRÜN ADI
============================================================ */

.product-name {
    width: 100%;
    max-width: 100%;

    color: #8d151d !important;

    font-family: Georgia, serif;

    font-size: 53px;

    line-height: 1.12;

    font-weight: normal;

    margin: 0;

    padding: 0;

    white-space: normal;

    overflow-wrap: break-word;
}


/* ============================================================
   DEKORASYON
============================================================ */

.product-decoration {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 14px;

    margin: 23px 0 26px;
}

.product-decoration span {
    height: 1px;

    flex: 1;

    min-width: 0;

    max-width: 180px;

    background-color: #c69b5a;
}

.product-decoration i {
    color: #bd8738;

    font-size: 21px;
}


/* ============================================================
   AÇIKLAMA
============================================================ */

.product-description {
    width: 100%;
    max-width: 100%;

    color: #4f4a48;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;

    line-height: 1.72;

    overflow-wrap: break-word;
}

.product-description br {
    display: block;

    content: "";

    margin-top: 10px;
}


/* ============================================================
   WHATSAPP
============================================================ */

.product-whatsapp {
    width: 100%;
    max-width: 100%;

    margin-top: 34px;

    padding: 22px;

    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 18px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #8c151d,
            #b4262d
        );

    border: 1px solid #d09b5b;

    box-shadow:
        0 9px 25px rgba(118, 19, 25, 0.14);
}

.product-whatsapp-icon {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background-color: white;
}

.product-whatsapp-icon i {
    color: #24a348;

    font-size: 35px;
}

.product-whatsapp-text {
    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.product-whatsapp-text strong {
    color: white;

    font-family: Georgia, serif;

    font-size: 21px;

    font-weight: normal;

    line-height: 1.3;

    overflow-wrap: break-word;
}

.product-whatsapp-text span {
    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;

    line-height: 1.4;

    overflow-wrap: break-word;
}

.product-whatsapp-button {
    min-width: 180px;

    padding: 14px 17px;

    border-radius: 9px;

    background-color: white;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.product-whatsapp-button span,
.product-whatsapp-button i {
    color: #661319;

    cursor: pointer;
}

.product-whatsapp-button:hover {
    transform: translateY(-2px);

    background-color: #fff8ec;
}


/* ============================================================
   WHATSAPP ALT BİLGİ
============================================================ */

.product-whatsapp-info {
    width: 100%;
    max-width: 100%;

    margin-top: 14px;

    padding: 13px 18px;

    display: flex;

    align-items: center;

    gap: 12px;

    border-radius: 30px;

    background-color: #f5eee6;
}

.product-whatsapp-info i {
    color: #9b6b2e;

    font-size: 20px;

    flex-shrink: 0;
}

.product-whatsapp-info span {
    min-width: 0;

    color: #554c46;

    font-size: 14px;

    line-height: 1.4;

    overflow-wrap: break-word;
}


/* ============================================================
   ALT DETAY KARTLARI
============================================================ */

.product-details {
    width: 100%;

    margin-top: 40px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 25px;
}

.product-detail-box {
    width: 100%;
    min-width: 0;

    min-height: 260px;

    padding: 28px 30px;

    background-color:
        rgba(255, 255, 255, 0.72);

    border: 1px solid #e3c89f;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(70, 48, 35, 0.04);
}


/* ============================================================
   DETAY BAŞLIKLARI
============================================================ */

.product-detail-title {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}

.product-detail-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: #f6e9d7;
}

.product-detail-icon i {
    color: #a66a27;

    font-size: 20px;
}

.product-detail-title h2 {
    color: #85171d;

    font-family: Georgia, serif;

    font-size: 26px;

    font-weight: normal;

    white-space: nowrap;
}

.product-detail-title > span {
    height: 1px;

    flex: 1;

    min-width: 0;

    background-color: #d7af73;
}


/* ============================================================
   DETAY LİSTESİ
============================================================ */

.product-detail-lines {
    width: 100%;
}

.product-detail-lines ul {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    column-gap: 32px;

    row-gap: 11px;
}

.product-detail-lines li {
    color: #504944;

    position: relative;

    padding-left: 20px;

    font-size: 16px;

    line-height: 1.5;

    overflow-wrap: break-word;
}

.product-detail-lines li::before {
    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background-color: #a11c23;

    left: 0;
    top: 9px;
}


/* ============================================================
   LIGHTBOX
============================================================ */

body.product-lightbox-open {
    overflow: hidden;
}

.product-lightbox {
    position: fixed;

    width: 100%;
    height: 100%;

    top: 0;
    left: 0;

    z-index: 9999999;

    background-color: rgba(0, 0, 0, 0.93);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 40px;
}

.product-lightbox.active {
    display: flex;
}

.product-lightbox img {
    max-width: 92%;
    max-height: 92%;

    object-fit: contain;

    border-radius: 5px;
}

.product-lightbox-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 50px;
    height: 50px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.15);
}

.product-lightbox-close i {
    color: white;

    font-size: 25px;

    cursor: pointer;
}


/* ============================================================
   1260px SAYFA
   Browser <= 1570px
   #page = 1260px
   header = 100px
============================================================ */

@media only screen and (max-width: 1570px) {

    .product-page {
        padding-top: 130px;
        padding-bottom: 60px;
    }

    .product-container {
        width: 1160px;
    }

    .product-main {
        gap: 42px;
    }

    .product-name {
        font-size: 45px;
    }

    .product-description {
        font-size: 17px;

        line-height: 1.65;
    }

    .product-whatsapp {
        grid-template-columns:
            55px
            minmax(0, 1fr)
            auto;

        padding: 18px;

        gap: 13px;
    }

    .product-whatsapp-icon {
        width: 52px;
        height: 52px;
    }

    .product-whatsapp-icon i {
        font-size: 30px;
    }

    .product-whatsapp-text strong {
        font-size: 18px;
    }

    .product-whatsapp-button {
        min-width: 160px;

        font-size: 13px;
    }

    .product-detail-box {
        padding: 25px;
    }

}


/* ============================================================
   900px SAYFA
   Browser <= 1260px
   #page = 900px
   header = 65px
============================================================ */

@media only screen and (max-width: 1260px) {

    .product-page {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .product-header-background {
        height: 65px;
    }

    .product-container {
        width: 840px;
    }

    .product-main {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 0.93fr);

        gap: 30px;
    }

    .product-information {
        padding-top: 4px;
    }

    .product-category {
        font-size: 11px;

        padding: 8px 12px;

        margin-bottom: 13px;
    }

    .product-name {
        font-size: 34px;
    }

    .product-decoration {
        margin: 15px 0 17px;
    }

    .product-description {
        font-size: 15px;

        line-height: 1.55;
    }

    .product-whatsapp {
        margin-top: 20px;

        grid-template-columns:
            45px
            minmax(0, 1fr);

        gap: 11px;

        padding: 14px;
    }

    .product-whatsapp-icon {
        width: 44px;
        height: 44px;
    }

    .product-whatsapp-icon i {
        font-size: 27px;
    }

    .product-whatsapp-text strong {
        font-size: 16px;
    }

    .product-whatsapp-text span {
        font-size: 12px;
    }

    .product-whatsapp-button {
        grid-column: 1 / -1;

        width: 100%;

        min-width: 0;
    }

    .product-details {
        gap: 18px;

        margin-top: 30px;
    }

    .product-detail-box {
        min-height: 0;

        padding: 20px;
    }

    .product-detail-title {
        gap: 10px;
    }

    .product-detail-title h2 {
        font-size: 21px;
    }

    .product-detail-icon {
        width: 42px;
        height: 42px;

        flex-basis: 42px;
    }

    .product-detail-lines ul {
        grid-template-columns: 1fr;
    }

    .product-detail-lines li {
        font-size: 14px;
    }

}


/* ============================================================
   720px SAYFA
   Browser <= 900px
   #page = 720px
   header = 50px
============================================================ */

@media only screen and (max-width: 900px) {

    .product-page {
        padding-top: 72px;
        padding-bottom: 45px;
    }

    .product-header-background {
        height: 50px;
    }

    .product-container {
        width: 680px;
    }

    .product-main {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .product-main-image-wrapper {
        aspect-ratio: 1 / 0.85;
    }

    .product-information {
        padding-top: 0;
    }

    .product-name {
        font-size: 42px;
    }

    .product-description {
        font-size: 17px;

        line-height: 1.65;
    }

    .product-whatsapp {
        grid-template-columns:
            58px
            minmax(0, 1fr)
            auto;

        padding: 20px;
    }

    .product-whatsapp-icon {
        width: 55px;
        height: 55px;
    }

    .product-whatsapp-button {
        grid-column: auto;

        width: auto;

        min-width: 170px;
    }

    .product-details {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .product-detail-lines ul {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ============================================================
   TELEFON
   Browser <= 720px
   #page = 100%
   header = 50px
============================================================ */

@media only screen and (max-width: 720px) {

    .product-page {
        width: 100%;
        max-width: 100%;

        padding-top: 68px;
        padding-bottom: 35px;

        overflow: hidden;
    }

    .product-header-background {
        width: 100%;
        height: 50px;
    }

    .product-container {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin: 0;

        padding-left: 14px;
        padding-right: 14px;
    }


    /* ========================================================
       ANA GRID MOBİL
    ======================================================== */

    .product-main {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        display: block;
    }

    .product-gallery,
    .product-information {
        width: 100%;
        max-width: 100%;

        min-width: 0;
    }

    .product-information {
        margin-top: 28px;

        padding: 0;
    }


    /* ========================================================
       ANA FOTOĞRAF MOBİL
    ======================================================== */

    .product-main-image-wrapper {
        width: 100%;
        max-width: 100%;

        aspect-ratio: 1 / 1;

        border-radius: 12px;
    }

    .product-main-image {
        width: 100%;
        max-width: 100%;

        height: 100%;

        object-fit: contain;
    }


    /* ========================================================
       THUMBNAIL MOBİL
    ======================================================== */

    .product-thumbnails {
        width: 100%;
        max-width: 100%;

        display: flex;

        gap: 8px;

        margin-top: 12px;

        padding-bottom: 5px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
    }

    .product-thumbnails::-webkit-scrollbar {
        display: none;
    }

    .product-thumbnail {
        width: 82px;
        min-width: 82px;

        height: 68px;

        flex: 0 0 82px;

        aspect-ratio: auto;
    }


    /* ========================================================
       KATEGORİ MOBİL
    ======================================================== */

    .product-category {
        max-width: 100%;

        font-size: 10px;

        letter-spacing: 1.3px;

        padding: 8px 13px;

        margin-bottom: 15px;
    }

    .product-category span {
        max-width: 100%;

        overflow-wrap: break-word;
    }


    /* ========================================================
       ÜRÜN ADI MOBİL
    ======================================================== */

    .product-name {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        font-size: 36px !important;

        line-height: 1.08;

        white-space: normal;

        word-break: normal;

        overflow-wrap: break-word;
    }


    /* ========================================================
       DEKORASYON MOBİL
    ======================================================== */

    .product-decoration {
        width: 100%;
        max-width: 100%;

        margin: 20px 0;
    }

    .product-decoration span {
        min-width: 0;
    }


    /* ========================================================
       AÇIKLAMA MOBİL
    ======================================================== */

    .product-description {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        font-size: 16px;

        line-height: 1.65;

        overflow-wrap: break-word;
    }


    /* ========================================================
       WHATSAPP MOBİL
    ======================================================== */

    .product-whatsapp {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin-top: 25px;

        padding: 15px;

        display: grid;

        grid-template-columns:
            46px
            minmax(0, 1fr);

        gap: 12px;

        border-radius: 13px;
    }

    .product-whatsapp-icon {
        width: 46px;
        height: 46px;

        min-width: 46px;
    }

    .product-whatsapp-icon i {
        font-size: 27px;
    }

    .product-whatsapp-text {
        width: 100%;
        max-width: 100%;

        min-width: 0;
    }

    .product-whatsapp-text strong {
        display: block;

        width: 100%;

        font-size: 18px;

        line-height: 1.25;

        overflow-wrap: break-word;
    }

    .product-whatsapp-text span {
        display: block;

        width: 100%;

        margin-top: 4px;

        font-size: 13px;

        line-height: 1.4;

        overflow-wrap: break-word;
    }

    .product-whatsapp-button {
        grid-column: 1 / -1;

        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin-top: 3px;

        padding: 13px 10px;
    }

    .product-whatsapp-button span {
        white-space: normal;

        text-align: center;
    }


    /* ========================================================
       WHATSAPP ALT BİLGİ MOBİL
    ======================================================== */

    .product-whatsapp-info {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin-top: 12px;

        padding: 12px 14px;

        border-radius: 12px;

        align-items: flex-start;
    }

    .product-whatsapp-info span {
        min-width: 0;

        font-size: 13px;

        line-height: 1.4;

        overflow-wrap: break-word;
    }


    /* ========================================================
       ALT DETAYLAR MOBİL
    ======================================================== */

    .product-details {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        display: block;

        margin-top: 25px;
    }

    .product-detail-box {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        min-height: 0;

        padding: 18px 16px;

        margin-bottom: 15px;

        border-radius: 12px;
    }

    .product-detail-title {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        gap: 12px;

        margin-bottom: 18px;
    }

    .product-detail-icon {
        width: 42px;
        height: 42px;

        flex: 0 0 42px;
    }

    .product-detail-title h2 {
        min-width: 0;

        font-size: 22px;

        line-height: 1.2;

        white-space: normal;

        overflow-wrap: break-word;
    }

    .product-detail-title > span {
        display: none;
    }

    .product-detail-lines {
        width: 100%;
        max-width: 100%;

        min-width: 0;
    }

    .product-detail-lines ul {
        width: 100%;

        display: grid;

        grid-template-columns: 1fr;

        row-gap: 9px;
    }

    .product-detail-lines li {
        width: 100%;

        padding-left: 20px;

        font-size: 15px;

        line-height: 1.5;

        overflow-wrap: break-word;
    }


    /* ========================================================
       LIGHTBOX MOBİL
    ======================================================== */

    .product-lightbox {
        padding: 15px;
    }

    .product-lightbox img {
        max-width: 100%;

        max-height: 88%;
    }

    .product-lightbox-close {
        top: 12px;
        right: 12px;

        width: 43px;
        height: 43px;
    }

}


/* ============================================================
   ÇOK KÜÇÜK TELEFONLAR
============================================================ */

@media only screen and (max-width: 420px) {

    .product-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-name {
        font-size: 32px !important;
    }

    .product-description {
        font-size: 15px;
    }

    .product-whatsapp {
        padding: 13px;
    }

    .product-whatsapp-text strong {
        font-size: 17px;
    }

    .product-whatsapp-text span {
        font-size: 12px;
    }

    .product-detail-title h2 {
        font-size: 20px;
    }

    .product-detail-lines li {
        font-size: 14px;
    }

}