/* Phanoliax - yeni özellik stilleri (tema uyumlu) */

/* # Okuma ilerleme çubuğu */
.plx-progress {
    position: fixed;
    left: 0;
    top: 0;
    height: 3px;
    width: 0%;
    background: var(--primary_color);
    z-index: 99999;
    transition: width .08s linear;
    pointer-events: none;
}

/* # Yukarı çık butonu */
.plx-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .3s ease, color .3s ease;
    z-index: 9998;
}
.plx-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.plx-top:hover {
    transform: translateY(-4px);
}
html[data-theme='dark'] .plx-top {
    background: #323232;
    color: #ffffff;
}
html[data-theme='light'] .plx-top {
    background: #0F0F0F;
    color: #ffffff;
}

/* # Marquee: üzerine gelince duraklat */
.banner:hover .marquee div {
    animation-play-state: paused;
}

/* # Sayaç animasyonu için hazırlık */
.plx-counter-ready {
    visibility: hidden;
}
.plx-counter-ready.plx-counter-done {
    visibility: visible;
}

/* # Hero typing efekti */
.plx-caret {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    vertical-align: -2px;
    animation: plx-blink .9s step-end infinite;
}
html[data-theme='dark'] .plx-caret {
    background: #ffffff;
}
html[data-theme='light'] .plx-caret {
    background: #0F0F0F;
}
@keyframes plx-blink {
    50% { opacity: 0; }
}

/* # Lightbox */
.plx-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.plx-lightbox.open {
    opacity: 1;
    visibility: visible;
}
.plx-lightbox img {
    max-width: 90%;
    max-height: 88%;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
    transform: scale(.96);
    transition: transform .25s ease;
}
.plx-lightbox.open img {
    transform: scale(1);
}
.plx-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #323232;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, transform .3s ease;
}
.plx-lightbox-close:hover {
    background: #5B78F6;
    transform: rotate(90deg);
}
.plx-zoomable {
    cursor: zoom-in;
}

/* # Form doğrulama */
.plx-field-error {
    outline: none;
    border: 1px solid #e5484d !important;
}
.plx-error-msg {
    display: block;
    color: #e5484d;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 4px;
}
@keyframes plx-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.plx-shake {
    animation: plx-shake .3s ease 2;
}
.contact-area .contact-form form .input-group {
    position: relative;
}

/* =====================  TEMA YUZEYLERI  ===================== */
html[data-theme='dark'] {
    --plx-surface: #1B1B20;
    --plx-border: rgba(255, 255, 255, .09);
    --plx-muted: #9f9f9f;
}
html[data-theme='light'] {
    --plx-surface: #ffffff;
    --plx-border: rgba(15, 15, 15, .10);
    --plx-muted: #676767;
}

/* =====================  SAYFA GECISLERI  ===================== */
@keyframes plx-fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}
.plx-page-enter {
    animation: plx-fadein .4s ease;
}
html.plx-leaving body {
    opacity: 0;
    transition: opacity .15s ease;
}

/* =====================  HEADER SEPET BUTONU  ===================== */
.plx-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 20px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.plx-cart-btn:hover {
    transform: translateY(-2px);
}
html[data-theme='dark'] .plx-cart-btn {
    background: #323232;
    color: #ffffff;
}
html[data-theme='light'] .plx-cart-btn {
    background: #0F0F0F;
    color: #ffffff;
}
.plx-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary_color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}
.plx-cart-btn.has-items {
    animation: plx-pop .35s ease;
}
@keyframes plx-pop {
    40% { transform: scale(1.12); }
}

/* =====================  TOAST  ===================== */
.plx-toasts {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.plx-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--plx-border);
    background: var(--plx-surface);
    color: inherit;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease;
}
.plx-toast.in {
    opacity: 1;
    transform: translateY(0);
}
.plx-toast i {
    font-size: 18px;
    color: var(--primary_color);
}

/* =====================  KOMUT PALETI  ===================== */
.plx-palette {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(4px);
    z-index: 100001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 16px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.plx-palette.open {
    opacity: 1;
    visibility: visible;
}
.plx-palette-panel {
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--plx-border);
    background: var(--plx-surface);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    transform: translateY(-10px) scale(.98);
    transition: transform .2s ease;
}
.plx-palette.open .plx-palette-panel {
    transform: none;
}
.plx-palette-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--plx-border);
}
.plx-palette-head i {
    font-size: 20px;
    color: var(--primary_color);
}
.plx-palette-head input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: inherit;
    font-family: inherit;
}
.plx-palette-head kbd,
.plx-palette-foot kbd {
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 11px;
    border: 1px solid var(--plx-border);
    background: transparent;
    color: var(--plx-muted);
    font-family: inherit;
}
.plx-palette-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 8px;
}
.plx-palette-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.plx-palette-item i {
    font-size: 17px;
    color: var(--plx-muted);
}
.plx-palette-item .lbl {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.plx-palette-item em {
    font-style: normal;
    color: var(--primary_color);
    font-weight: 600;
}
.plx-palette-item small {
    color: var(--plx-muted);
    font-size: 11px;
}
.plx-palette-item.sel {
    background: var(--primary_color);
    color: #fff;
}
.plx-palette-item.sel i,
.plx-palette-item.sel small {
    color: rgba(255, 255, 255, .8);
}
.plx-palette-empty {
    padding: 26px;
    text-align: center;
    color: var(--plx-muted);
    font-size: 14px;
}
.plx-palette-foot {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--plx-border);
    color: var(--plx-muted);
    font-size: 12px;
}
.plx-palette-foot span:last-child {
    margin-left: auto;
}

/* =====================  URUN KARTI AKSIYONLARI + TILT  ===================== */
.projects-area .project-item {
    transition: transform .18s ease;
    will-change: transform;
}
.plx-card-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.project-item:hover .plx-card-actions {
    opacity: 1;
    transform: translateX(0);
}
.plx-act {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
html[data-theme='dark'] .plx-act {
    background: rgba(50, 50, 50, .92);
    color: #fff;
}
html[data-theme='light'] .plx-act {
    background: rgba(15, 15, 15, .92);
    color: #fff;
}
.plx-act:hover {
    background: var(--primary_color);
    transform: scale(1.08);
}

/* =====================  QUICK VIEW  ===================== */
.plx-qv {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.plx-qv.open {
    opacity: 1;
    visibility: visible;
}
.plx-qv-panel {
    position: relative;
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 720px;
    max-height: 86vh;
    border-radius: 24px;
    overflow: hidden;
    background: var(--plx-surface);
    border: 1px solid var(--plx-border);
    transform: translateY(14px) scale(.97);
    transition: transform .25s ease;
}
.plx-qv.open .plx-qv-panel {
    transform: none;
}
.plx-qv-img {
    flex: 0 0 44%;
    background: rgba(127, 127, 127, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.plx-qv-img img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 14px;
}
.plx-qv-body {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
}
.plx-qv-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(127, 127, 127, .18);
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    transition: transform .3s ease, background .3s ease;
}
.plx-qv-close:hover {
    transform: rotate(90deg);
    background: var(--primary_color);
    color: #fff;
}
.plx-qv-cat {
    color: var(--plx-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
}
.plx-qv-name {
    font-size: 26px;
    margin: 6px 0 10px;
}
.plx-qv-desc {
    color: var(--plx-muted);
    font-size: 14px;
    line-height: 1.6;
}
.plx-qv-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary_color);
    margin: 16px 0 18px;
}
.plx-qv-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.plx-qty {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 14px;
    border: 1px solid var(--plx-border);
}
.plx-qty button {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    padding: 4px;
    transition: color .2s ease;
}
.plx-qty button:hover {
    color: var(--primary_color);
}
.plx-qty b {
    min-width: 22px;
    text-align: center;
}
.plx-qv-add {
    cursor: pointer;
    border: none;
    font-family: inherit;
}
.plx-qv-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--plx-muted);
    transition: color .2s ease, gap .2s ease;
}
.plx-qv-link:hover {
    color: var(--primary_color);
    gap: 10px;
}

/* =====================  SEPET SAYFASI  ===================== */
.plx-cart-empty {
    text-align: center;
    padding: 70px 30px;
    border-radius: 30px;
}
.plx-cart-empty i {
    font-size: 44px;
    color: var(--primary_color);
}
.plx-cart-empty h3 {
    margin: 14px 0 6px;
}
.plx-cart-empty p {
    color: var(--plx-muted);
    margin-bottom: 22px;
}
.plx-cart-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--plx-border);
}
.plx-cart-row:last-child {
    border-bottom: none;
}
.plx-cart-row img {
    width: 74px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}
.plx-cart-info {
    flex: 1;
    min-width: 0;
}
.plx-cart-info b {
    display: block;
}
.plx-cart-info small {
    color: var(--plx-muted);
}
.plx-cart-line {
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}
.plx-cart-del {
    border: none;
    background: transparent;
    color: var(--plx-muted);
    font-size: 17px;
    cursor: pointer;
    padding: 6px;
    transition: color .2s ease, transform .2s ease;
}
.plx-cart-del:hover {
    color: #e5484d;
    transform: scale(1.1);
}
.plx-cart-list {
    padding: 24px;
    border-radius: 30px;
}
.plx-cart-side {
    flex: 0 0 300px;
    padding: 24px;
    border-radius: 30px;
    position: sticky;
    top: 90px;
}
.plx-cart-side h3 {
    margin-bottom: 16px;
}
.plx-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px dashed var(--plx-border);
    border-bottom: 1px dashed var(--plx-border);
    margin-bottom: 18px;
}
.plx-cart-total b {
    font-size: 20px;
    color: var(--primary_color);
}
.plx-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
}
.plx-cart-clear {
    width: 100%;
    margin-top: 10px;
    padding: 11px;
    border-radius: 14px;
    border: 1px solid var(--plx-border);
    background: transparent;
    color: var(--plx-muted);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}
.plx-cart-clear:hover {
    color: #e5484d;
    border-color: #e5484d;
}
.plx-cart-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 16px;
    color: var(--plx-muted);
    font-size: 12px;
    line-height: 1.5;
}
.plx-cart-note i {
    color: var(--primary_color);
    margin-top: 2px;
}

/* =====================  YORUMLAR  ===================== */
.plx-rev-summary {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 30px;
    border-radius: 30px;
    flex-wrap: wrap;
}
.plx-rev-score {
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary_color);
}
.plx-rev-stars {
    color: #FFB43A;
    font-size: 18px;
    letter-spacing: 3px;
}
.plx-rev-meta {
    color: var(--plx-muted);
    font-size: 13px;
}
.plx-rev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.plx-rev-card {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--plx-border);
    background: var(--plx-surface);
    transition: transform .25s ease, border-color .25s ease;
}
.plx-rev-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary_color);
}
.plx-rev-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.plx-rev-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary_color);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.plx-rev-head b {
    display: block;
    font-size: 14px;
}
.plx-rev-head small {
    color: var(--plx-muted);
    font-size: 12px;
}
.plx-rev-stars-sm {
    margin-left: auto;
    color: #FFB43A;
    font-size: 13px;
    letter-spacing: 2px;
}
.plx-rev-card p {
    color: var(--plx-muted);
    font-size: 13.5px;
    line-height: 1.7;
}
.plx-rev-strip {
    overflow: hidden;
    margin-top: 34px;
    position: relative;
    height: 30px;
}
.plx-rev-strip span {
    position: absolute;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--plx-muted);
    animation: marquee 14s linear infinite;
    will-change: transform;
}
.plx-rev-strip b {
    color: var(--primary_color);
}

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 767px) {
    .plx-qv-panel {
        flex-direction: column;
        overflow-y: auto;
    }
    .plx-qv-img {
        flex: none;
    }
    .plx-cart-wrap {
        flex-direction: column;
    }
    .plx-cart-side {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
    .plx-cart-row img {
        width: 56px;
        height: 46px;
    }
    .plx-toasts {
        left: 16px;
        right: 16px;
        bottom: 80px;
    }
}
