/* ================================================
   Ha Product Detail — HanTema v1.0.0
   Prefix: hapd-   (çakışma önlemi)
   ================================================ */

.hapd-wrap {
    --hapd-bg:          #F5F0E8;
    --hapd-card-bg:     #ffffff;
    --hapd-img-bg:      #EDE8DF;
    --hapd-text:        #1A1A1A;
    --hapd-sub:         #5C574F;
    --hapd-muted:       #7B7670;
    --hapd-border:      #E8E2D8;
    --hapd-accent:      #C8A96E;
    --hapd-accent-lt:   #E8D9B8;
    --hapd-dark:        #1A1A1A;
    --hapd-green:       #3A6B35;
    --hapd-badge-bg:    #D6CFC4;
    --hapd-badge-text:  #2C2620;
    --hapd-radius:      18px;
    --hapd-radius-sm:   10px;
    --hapd-shadow:      0 4px 24px rgba(0,0,0,0.08);
    --hapd-shadow-hov:  0 14px 44px rgba(0,0,0,0.13);
    box-sizing: border-box;
    font-family: inherit;
}
.hapd-wrap *, .hapd-wrap *::before, .hapd-wrap *::after { box-sizing: inherit; }

/* ══════════════════════════════════════
   ÜSTTE: GÖRSEL + DETAY (2 sütun)
══════════════════════════════════════ */
.hapd-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

/* ── SOL: GÖRSEL GALERİ ── */
.hapd-gallery { display: flex; flex-direction: column; gap: 14px; }

/* Ana görsel */
.hapd-main-img-wrap {
    position: relative;
    background: var(--hapd-img-bg);
    border-radius: var(--hapd-radius);
    overflow: hidden;
    line-height: 0;
    cursor: zoom-in;
}
.hapd-main-img-wrap img {
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.hapd-main-img-wrap:hover img { transform: scale(1.03); }

/* Rozet */
.hapd-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--hapd-badge-bg);
    color: var(--hapd-badge-text);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    z-index: 2;
    white-space: nowrap;
}

/* Küçük resim şeridi */
.hapd-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--hapd-border) transparent;
    padding-bottom: 4px;
}
.hapd-thumbs::-webkit-scrollbar { height: 4px; }
.hapd-thumbs::-webkit-scrollbar-track { background: transparent; }
.hapd-thumbs::-webkit-scrollbar-thumb { background: var(--hapd-border); border-radius: 2px; }

.hapd-thumb {
    width: 76px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color .2s, transform .2s;
    background: var(--hapd-img-bg);
    line-height: 0;
}
.hapd-thumb:hover { transform: translateY(-2px); }
.hapd-thumb.is-active { border-color: var(--hapd-accent); }
.hapd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox overlay */
.hapd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.hapd-lightbox.open { display: flex; }
.hapd-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,.5);
    cursor: default;
}
.hapd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 4px 8px;
    transition: opacity .2s;
}
.hapd-lightbox-close:hover { opacity: .7; }
.hapd-lightbox-prev,
.hapd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.hapd-lightbox-prev:hover, .hapd-lightbox-next:hover { background: rgba(255,255,255,.25); }
.hapd-lightbox-prev { left: 20px; }
.hapd-lightbox-next { right: 20px; }

/* ── SAĞ: ÜRÜN BİLGİSİ ── */
.hapd-info { display: flex; flex-direction: column; }

/* Kategori rozeti */
.hapd-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hapd-accent-lt);
    color: var(--hapd-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 14px;
    width: fit-content;
}

/* Ürün başlığı */
.hapd-product-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--hapd-text);
    line-height: 1.2;
    margin: 0 0 6px;
    word-break: break-word;
}

/* Alt başlık */
.hapd-product-subtitle {
    font-size: 15px;
    color: var(--hapd-muted);
    margin: 0 0 22px;
    font-weight: 500;
}

/* Özellik satırları */
.hapd-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--hapd-border);
    border-radius: var(--hapd-radius-sm);
    overflow: hidden;
}
.hapd-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--hapd-card-bg);
    border-bottom: 1px solid var(--hapd-border);
    transition: background .18s;
}
.hapd-spec-row:last-child { border-bottom: none; }
.hapd-spec-row:nth-child(even) { background: var(--hapd-bg); }
.hapd-spec-row:hover { background: var(--hapd-accent-lt); }

.hapd-spec-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--hapd-muted);
    min-width: 0;
}
.hapd-spec-label i, .hapd-spec-label svg {
    font-size: 14px !important;
    width: 15px !important;
    flex-shrink: 0;
    color: var(--hapd-accent);
    display: block !important;
    line-height: 1 !important;
}
.hapd-spec-label .elementor-icon,
.hapd-spec-label span.elementor-icon {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 14px !important;
    width: 15px !important;
    height: 14px !important;
    line-height: 1 !important;
    color: var(--hapd-accent) !important;
    flex-shrink: 0 !important;
}
.hapd-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--hapd-text);
    text-align: right;
    flex-shrink: 0;
    margin-left: 16px;
}

/* Ayraç */
.hapd-info-divider {
    height: 1px;
    background: var(--hapd-border);
    margin: 4px 0 20px;
}

/* Fiyat */
.hapd-price-area { margin-bottom: 22px; }
.hapd-price-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--hapd-muted);
    margin-bottom: 4px;
}
.hapd-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--hapd-text);
    line-height: 1;
}
.hapd-price-note {
    font-size: 12px;
    color: var(--hapd-muted);
    margin-top: 4px;
}

/* Butonlar */
.hapd-btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

.hapd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hapd-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: background .22s, transform .18s, box-shadow .22s;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(26,26,26,.18);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.hapd-btn-primary:hover { background: #2d2d2d; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,26,26,.24); }

.hapd-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    transition: background .22s, transform .18s;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(37,211,102,.25);
}
.hapd-btn-wa:hover { background: #20bd5a; color: #fff; transform: translateY(-2px); }

.hapd-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--hapd-text);
    font-size: 15px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 50px;
    text-decoration: none;
    border: 1.5px solid var(--hapd-border);
    transition: border-color .22s, color .22s, background .22s;
    white-space: nowrap;
    line-height: 1;
}
.hapd-btn-phone:hover { border-color: var(--hapd-accent); color: var(--hapd-accent); background: var(--hapd-accent-lt); }

/* Buton içi ikon */
.hapd-btn-primary i, .hapd-btn-primary svg,
.hapd-btn-wa i, .hapd-btn-wa svg,
.hapd-btn-phone i, .hapd-btn-phone svg {
    font-size: 15px !important; width: 15px !important; height: 15px !important;
    display: block !important; line-height: 1 !important; flex-shrink: 0 !important;
}
.hapd-btn-primary .elementor-icon, .hapd-btn-primary span.elementor-icon,
.hapd-btn-wa .elementor-icon, .hapd-btn-wa span.elementor-icon,
.hapd-btn-phone .elementor-icon, .hapd-btn-phone span.elementor-icon {
    display: inline-flex !important; align-items: center !important;
    width: 15px !important; height: 15px !important; font-size: 15px !important;
    line-height: 1 !important; flex-shrink: 0 !important;
}

/* Sertifika rozetleri */
.hapd-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hapd-border);
}
.hapd-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--hapd-bg);
    border: 1px solid var(--hapd-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hapd-sub);
}
.hapd-trust-badge i, .hapd-trust-badge svg {
    font-size: 12px !important; width: 12px !important; color: var(--hapd-green);
    display: block !important; line-height: 1 !important; flex-shrink: 0 !important;
}

/* ══════════════════════════════════════
   ORTA: VIDEO
══════════════════════════════════════ */
.hapd-video-section {
    margin-bottom: 48px;
}
.hapd-video-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.hapd-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--hapd-accent);
    margin-bottom: 8px;
}
.hapd-section-eyebrow i, .hapd-section-eyebrow svg {
    font-size: 12px !important; display: block !important; line-height: 1 !important;
}
.hapd-section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--hapd-text);
    margin: 0;
    line-height: 1.3;
}

/* Video wrapper (responsive 16:9) */
.hapd-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--hapd-radius);
    background: var(--hapd-dark);
    box-shadow: var(--hapd-shadow);
}
.hapd-video-wrap iframe,
.hapd-video-wrap video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--hapd-radius);
}

/* Video thumbnail + play butonu */
.hapd-video-thumb-wrap {
    position: absolute;
    inset: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hapd-video-thumb-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--hapd-radius);
}
.hapd-video-play-btn {
    position: relative;
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
    transition: transform .22s, background .22s;
}
.hapd-video-thumb-wrap:hover .hapd-video-play-btn { transform: scale(1.1); background: #fff; }
.hapd-video-play-btn i { font-size: 28px; color: var(--hapd-dark); margin-left: 4px; line-height: 1 !important; }

/* ══════════════════════════════════════
   ALTTA: UZUN AÇIKLAMA (Sekme sistemi)
══════════════════════════════════════ */
.hapd-desc-section { }

.hapd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--hapd-border);
    margin-bottom: 0;
    flex-wrap: wrap;
}
.hapd-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hapd-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: color .2s, border-color .2s;
    font-family: inherit;
    white-space: nowrap;
}
.hapd-tab-btn i, .hapd-tab-btn svg {
    font-size: 14px !important; display: block !important; line-height: 1 !important; flex-shrink: 0 !important;
}
.hapd-tab-btn:hover { color: var(--hapd-text); }
.hapd-tab-btn.is-active {
    color: var(--hapd-accent);
    border-bottom-color: var(--hapd-accent);
}

.hapd-tab-panels { }
.hapd-tab-panel {
    display: none;
    padding: 32px 0;
    animation: hapdFadeIn .25s ease;
}
.hapd-tab-panel.is-active { display: block; }

@keyframes hapdFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Açıklama içeriği */
.hapd-desc-content {
    font-size: 15px;
    color: var(--hapd-sub);
    line-height: 1.82;
}
.hapd-desc-content h2, .hapd-desc-content h3, .hapd-desc-content h4 {
    color: var(--hapd-dark); font-weight: 800; margin: 24px 0 12px; line-height: 1.3;
}
.hapd-desc-content h2 { font-size: 22px; }
.hapd-desc-content h3 { font-size: 19px; }
.hapd-desc-content p { margin: 0 0 16px; }
.hapd-desc-content ul, .hapd-desc-content ol { padding-left: 22px; margin-bottom: 16px; }
.hapd-desc-content li { margin-bottom: 6px; }
.hapd-desc-content img { max-width: 100%; border-radius: var(--hapd-radius-sm); margin: 16px 0; }
.hapd-desc-content blockquote {
    border-left: 4px solid var(--hapd-accent);
    background: var(--hapd-accent-lt);
    padding: 14px 18px;
    border-radius: 0 var(--hapd-radius-sm) var(--hapd-radius-sm) 0;
    margin: 20px 0;
    font-style: italic;
}
.hapd-desc-content strong { color: var(--hapd-dark); }
.hapd-desc-content a { color: var(--hapd-accent); text-decoration: underline; }

/* Teknik tablo sekmesi */
.hapd-tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.hapd-tech-table tr { border-bottom: 1px solid var(--hapd-border); }
.hapd-tech-table tr:last-child { border-bottom: none; }
.hapd-tech-table tr:hover td { background: var(--hapd-bg); }
.hapd-tech-table td {
    padding: 13px 18px;
    vertical-align: middle;
    color: var(--hapd-sub);
}
.hapd-tech-table td:first-child {
    font-weight: 600;
    color: var(--hapd-muted);
    width: 40%;
    border-right: 1px solid var(--hapd-border);
}
.hapd-tech-table td:last-child { font-weight: 700; color: var(--hapd-text); }
.hapd-tech-table tr:nth-child(even) td { background: var(--hapd-bg); }

/* ══════════════════════════════════════
   TABLET ≤1024px
══════════════════════════════════════ */
@media (max-width: 1024px) {
    .hapd-top               { gap: 32px; }
    .hapd-product-title     { font-size: 28px !important; }
    .hapd-price             { font-size: 30px !important; }
    .hapd-thumb             { width: 64px; height: 58px; }
}

/* ══════════════════════════════════════
   MOBİL ≤767px
══════════════════════════════════════ */
@media (max-width: 767px) {
    .hapd-top               { grid-template-columns: 1fr; gap: 28px; }
    .hapd-product-title     { font-size: 24px !important; }
    .hapd-price             { font-size: 28px !important; }
    .hapd-btn-group         { flex-direction: column; }
    .hapd-btn-primary,
    .hapd-btn-wa,
    .hapd-btn-phone         { justify-content: center; }
    .hapd-tabs              { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
    .hapd-tab-btn           { padding: 11px 16px; font-size: 13px; }
    .hapd-section-title     { font-size: 20px !important; }
    .hapd-spec-label,
    .hapd-spec-value        { font-size: 13px !important; }
}

/* ══════════════════════════════════════
   KÜÇÜK MOBİL ≤480px
══════════════════════════════════════ */
@media (max-width: 480px) {
    .hapd-product-title { font-size: 20px !important; }
    .hapd-price         { font-size: 24px !important; }
    .hapd-thumb         { width: 56px; height: 50px; }
}
