/* ==========================================================
   DORTHOME CUSTOM CSS
   Sayfa içi (inline) <style> bloklarından toplanmıştır.
   Site genelinde headAssets.php üzerinden tek seferde yüklenir.
   ========================================================== */

/* ==========================================================
   index.php — DORTHOME-SECTION-DESC
   ========================================================== */
.dorthome-section-desc {
    max-width: 640px;
    margin: 14px auto 0;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 400;
}

@media (max-width: 640px) {
    .dorthome-section-desc {
        font-size: 13.5px;
        line-height: 1.65;
        padding: 0 12px;
    }

    .dorthome-section-desc br {
        display: none;
    }
}

/* ==========================================================
   index.php — DORTHOME-DELIVERY (Müşteri Teslimatları galerisi)
   ========================================================== */
.dorthome-delivery {
    padding: 60px 0 30px;
    background: #fafafa;
}

.dorthome-delivery-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
}

.dorthome-delivery-sub {
    text-align: center;
    max-width: 560px;
    margin: 10px auto 0;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.65;
}

.dorthome-delivery-wrap {
    position: relative;
    margin-top: 40px;
}

.dorthome-delivery-swiper {
    overflow: hidden;
}

.dorthome-delivery-slide {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: grab;
}

.dorthome-delivery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.dorthome-delivery-slide:hover .dorthome-delivery-img {
    transform: scale(1.06);
}

.dorthome-delivery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease;
}

.dorthome-delivery-nav:hover {
    background: #1f1f1f;
    color: #fff;
}

.dorthome-delivery-prev {
    left: -18px;
}

.dorthome-delivery-next {
    right: -18px;
}

@media (max-width: 900px) {

    .dorthome-delivery-prev,
    .dorthome-delivery-next {
        display: none;
    }
}

@media (max-width: 640px) {
    .dorthome-delivery-slide {
        aspect-ratio: 1 / 1;
    }
}

/* ==========================================================
   index.php — DORTHOME-CONTACT (Harita + iletişim bilgileri)
   ========================================================== */
.dorthome-contact {
    padding: 30px 0 70px;
}

.dorthome-contact-title {
    text-align: center;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 700;
}

.dorthome-contact-sub {
    text-align: center;
    max-width: 560px;
    margin: 10px auto 0;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.65;
}

.dorthome-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    margin-top: 40px;
    align-items: stretch;
}

.dorthome-contact-map {
    border-radius: 22px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.dorthome-contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

.dorthome-contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dorthome-contact-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.dorthome-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(12, 101, 151, 0.12);
    border-color: transparent;
}

.dorthome-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #0c6597;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.dorthome-contact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9a9a9a;
}

.dorthome-contact-value {
    font-size: 15px;
    font-weight: 600;
    color: #1f1f1f;
    line-height: 1.5;
    margin-top: 3px;
}

.dorthome-contact-card--hours .dorthome-contact-value {
    font-size: 13.5px;
    font-weight: 400;
    color: #4c4c4c;
}

.dorthome-contact-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.dorthome-contact-hours-row span:last-child {
    font-weight: 600;
    color: #1f1f1f;
}

@media (max-width: 900px) {
    .dorthome-contact-grid {
        grid-template-columns: 1fr;
    }

    .dorthome-contact-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .dorthome-contact-info {
        grid-template-columns: 1fr;
    }

    .dorthome-contact-map,
    .dorthome-contact-map iframe {
        min-height: 280px;
    }
}

/* ==========================================================
   delivery.php — Delivery Gallery (lightGallery grid)
   ========================================================== */
.custom-dorthome-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.custom-dorthome-gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    cursor: pointer;
}

.custom-dorthome-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.custom-dorthome-gallery-item:hover img {
    transform: scale(1.06);
}

.custom-dorthome-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dorthome-gallery-item:hover .custom-dorthome-gallery-overlay {
    opacity: 1;
}

.custom-dorthome-gallery-overlay i {
    color: #fff;
    font-size: 28px;
}

@media (max-width: 767px) {
    .custom-dorthome-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .custom-dorthome-gallery-item {
        border-radius: 16px;
    }

    .custom-dorthome-gallery-item img {
        height: 160px;
        border-radius: 16px;
    }
}

/* ==========================================================
   productDetail.php — ÜRÜN BİLGİ BLOĞU
   ========================================================== */
.product-price-main {
    font-size: 34px;
    font-weight: 700;
    margin-top: 6px;
    color: #0c6597;
    font-family: 'Google Sans', sans-serif;
}

.delivery-note {
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 14px;
}

.price-include-label {
    display: inline-block;
    background: #f9d94b;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 16px;
}

.price-include-text {
    display: block;
    background: #f9d94b;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 8px;
    width: fit-content;
}

.whatsapp-contact-note {
    color: #2ea44f;
    font-size: 15px;
    margin-top: 16px;
    line-height: 1.6;
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 16px 28px;
    border-radius: 10px;
    text-decoration: none;
    margin-top: 22px;
    width: 100%;
    max-width: 340px;
    transition: background 0.25s ease, transform 0.15s ease;
}

.whatsapp-order-btn:hover {
    background: #1ebe5b;
    transform: translateY(-2px);
}

.whatsapp-order-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==========================================================
   productDetail.php — ÜRÜN GÖRSEL GALERİSİ (bağımsız swiper)
   ========================================================== */
.js-gallery-main {
    position: relative;
}

.js-gallery-main .swiper-slide {
    cursor: zoom-in;
}

.js-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.js-gallery-main .swiper-button-prev,
.js-gallery-main .swiper-button-next {
    color: #1f1f1f;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.js-gallery-main .swiper-button-prev::after,
.js-gallery-main .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.js-gallery-thumbs {
    box-sizing: border-box;
}

.js-gallery-thumbs .swiper-slide {
    width: 22%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.js-gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.js-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #1f1f1f;
}

.mfp-img-container .mfp-img {
    max-height: 85vh;
}

/* ==========================================================
   productDetail.php — MODERN FEATURES TABLOSU
   ========================================================== */
.features-section {
    padding: 70px 0;
}

.features-section .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.features-section .section-divider {
    width: 60px;
    height: 2px;
    background: #1f1f1f;
    margin: 0 auto 40px;
    position: relative;
}

.features-section .section-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #1f1f1f;
}

.features-table-wrap {
    max-width: 820px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #ececec;
}

.features-row {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    gap: 20px;
    transition: background 0.2s ease;
}

.features-row:nth-child(odd) {
    background: #fafafa;
}

.features-row:hover {
    background: #f3f3f3;
}

.features-row:not(:last-child) {
    border-bottom: 1px solid #ececec;
}

.features-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1f1f1f;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-icon svg {
    width: 20px;
    height: 20px;
}

.features-label {
    font-weight: 700;
    width: 160px;
    flex-shrink: 0;
    font-size: 15px;
}

.features-value {
    color: #555;
    font-size: 15px;
}

@media (max-width: 640px) {
    .features-row {
        padding: 14px 16px;
        gap: 12px;
    }

    .features-label {
        width: 110px;
        font-size: 13.5px;
    }

    .features-value {
        font-size: 13.5px;
    }
}

/* ==========================================================
   productDetail.php — RENK PALETİ
   ========================================================== */
.color-palette-section {
    padding: 70px 0;
    background: #fafafa;
}

.color-palette-section .section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.color-palette-section .section-divider {
    width: 60px;
    height: 2px;
    background: #1f1f1f;
    margin: 0 auto 16px;
    position: relative;
}

.color-palette-section .section-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #1f1f1f;
}

.color-palette-desc {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.6;
}

.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.color-palette-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.color-palette-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.color-palette-item:hover img {
    transform: scale(1.06);
}

.color-palette-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0) 55%);
}

.color-palette-item span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    z-index: 1;
}

@media (max-width: 768px) {
    .color-palette-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .color-palette-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   productDetail.php — RELATED PRODUCTS swiper düzeltmesi
   ========================================================== */
.swiper-button-prev2,
.swiper-button-next2 {
    z-index: 10;
}

.swiper-button-prev2.swiper-button-disabled,
.swiper-button-next2.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ==========================================================
   index.php — DORTHOME ASİSTAN (yapay zeka sohbet widget'ı)
   Renkler ai/ai_chat.php ile birebir aynı (kurumsal mavi #0c6597)
   ========================================================== */
:root {
    --dorthome-accent: #0C6597;
    --dorthome-accent-dark: #084A70;
    --dorthome-accent-soft: rgba(12, 101, 151, 0.10);
    --dorthome-accent-glow: rgba(12, 101, 151, 0.28);
}

.dorthome-assistant-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 12px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dorthome-accent), var(--dorthome-accent-dark));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.1px;
    cursor: pointer;
    box-shadow: 0 10px 28px -8px rgba(8, 74, 112, 0.55), 0 2px 8px rgba(8, 74, 112, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dorthome-assistant-btn:hover {
    box-shadow: 0 16px 34px -8px rgba(8, 74, 112, 0.6), 0 4px 10px rgba(8, 74, 112, 0.3);
    filter: brightness(1.06);
}

.dorthome-assistant-btn:active {
    filter: brightness(0.96);
}

.dorthome-assistant-btn-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.dorthome-assistant-btn-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ddc84;
    border: 2px solid var(--dorthome-accent-dark);
    animation: dorthome-assistant-pulse 1.8s ease-in-out infinite;
}

@keyframes dorthome-assistant-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(61, 220, 132, 0);
    }
}

.dorthome-assistant-btn-label {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.dorthome-assistant-overlay {
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(15, 30, 38, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dorthome-assistant-overlay.open {
    opacity: 1;
    visibility: visible;
}

.dorthome-assistant-panel {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99998;
    width: 400px;
    max-width: calc(100vw - 32px);
    height: min(640px, calc(100vh - 48px));
    background: #F5F9FB;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px -16px rgba(8, 30, 45, 0.4), 0 4px 18px rgba(8, 30, 45, 0.18);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dorthome-assistant-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dorthome-assistant-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: linear-gradient(135deg, var(--dorthome-accent), var(--dorthome-accent-dark));
    flex-shrink: 0;
}

.dorthome-assistant-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dorthome-assistant-panel-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.dorthome-assistant-panel-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.dorthome-assistant-panel-name {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dorthome-assistant-panel-status {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

.dorthome-assistant-panel-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3ddc84;
}

.dorthome-assistant-close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.dorthome-assistant-close:hover {
    background: rgba(255, 255, 255, 0.26);
}

.dorthome-assistant-close:active {
    transform: scale(0.92);
}

.dorthome-assistant-panel-body {
    flex: 1;
    min-height: 0;
}

.dorthome-assistant-panel-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (max-width: 640px) {
    .dorthome-assistant-btn {
        right: 16px;
        bottom: 86px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 8px 16px 8px 8px;
        border-radius: 999px;
    }

    .dorthome-assistant-btn-icon {
        width: 30px;
        height: 30px;
    }

    .dorthome-assistant-btn-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .dorthome-assistant-btn-label-line {
        font-size: 10.5px;
        line-height: 1.2;
        letter-spacing: 0.2px;
        text-align: left;
        white-space: nowrap;
    }

    .dorthome-assistant-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        transform: translateY(24px) scale(1);
    }

    .dorthome-assistant-panel.open {
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================
   headerMenu.php — mobil menü ikonu altındaki "Menu" yazısı
   ========================================================== */
.menu-mobile-icon-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
    color: #ffffff;
}

/* ==========================================================
   DORTHOME ASİSTAN — dikkat çekici periyodik "zoom" aksiyonu
   Her ~6 saniyede bir hafifçe büyüyüp geri döner ("buradayım"
   etkisi), geri kalan sürede sabit durur.
   ========================================================== */
.dorthome-assistant-btn {
    animation: dorthome-assistant-attention-zoom 2s ease-in-out infinite;
    transform-origin: center;
}

.dorthome-assistant-btn:hover,
.dorthome-assistant-btn:focus-visible {
    animation-play-state: paused;
}

@keyframes dorthome-assistant-attention-zoom {

    0%,
    78%,
    100% {
        transform: scale(1);
    }

    87% {
        transform: scale(1.1);
    }

    94% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dorthome-assistant-btn {
        animation: none;
    }
}
