/* Elektronik Pazar - Tema + mobil + animasyon */

:root {

    --primary: #ffcc00;

    --primary-hover: #e6b800;

    --brand: #ffcc00;

    --darkbg: #16082b;

    --price-red: #e53e3e;

}



html { scroll-behavior: smooth; }

body { background: #f8f9fa; }

body.drawer-open,

body.menu-open { overflow: hidden; }



@keyframes fadeUp {

    from { opacity: 0; transform: translateY(24px); }

    to { opacity: 1; transform: translateY(0); }

}

@keyframes fadeIn {

    from { opacity: 0; }

    to { opacity: 1; }

}

@keyframes pulse-soft {

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

    50% { transform: scale(1.03); }

}

@keyframes slideHero {

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

    50% { transform: scale(1.04); }

}



.animate-fade-up { animation: fadeUp .7s ease both; }

.animate-fade-up-delay { animation: fadeUp .7s .15s ease both; }

.animate-fade-in { animation: fadeIn .6s ease both; }

.hero-slide-img { animation: slideHero 8s ease-in-out infinite; }

.hero-slider {
    position: relative;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .65s ease, visibility .65s ease;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dot {
    cursor: pointer;
    padding: 0;
}

.hero-dot.is-active {
    background-color: #9ca3af;
    width: 1.25rem;
}



/* Ürün kartları */

.product-card {

    transition: transform .3s ease, box-shadow .3s ease;

}

.product-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 8px 24px rgba(0,0,0,.12);

}



/* Mobil menü */

.mobile-overlay {

    position: fixed; inset: 0; z-index: 60;

    background: rgba(0,0,0,.5);

    opacity: 0; visibility: hidden;

    transition: opacity .3s, visibility .3s;

}

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

.mobile-panel {

    position: fixed; top: 0; left: 0; z-index: 70;

    width: min(340px, 88vw); height: 100%;

    background: #fff;

    transform: translateX(-100%);

    transition: transform .35s cubic-bezier(.4,0,.2,1);

    overflow-y: auto;

    box-shadow: 4px 0 20px rgba(0,0,0,.15);

}

.mobile-panel.open { transform: translateX(0); }



/* Sepet drawer */

#cartDrawer { transform: translateX(100%); }

#cartDrawer.is-open { transform: translateX(0); }

#cartOverlay { opacity: 0; visibility: hidden; pointer-events: none; }

#cartOverlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }



/* Filtre drawer */

#filterDrawer { transform: translateX(-100%); }

#filterDrawer.is-open { transform: translateX(0); }

#filterOverlay { opacity: 0; visibility: hidden; pointer-events: none; }

#filterOverlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }



/* Scroll reveal */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }

.reveal.visible { opacity: 1; transform: translateY(0); }



.tab-btn.active { background: var(--primary) !important; color: #1a1a1a !important; }

.wa-float { animation: pulse-soft 2s ease-in-out infinite; }

.promo-banner img { transition: transform .5s ease; }

.promo-banner:hover img { transform: scale(1.06); }



/* Kategori sayfası */

.page-hero {

    background: linear-gradient(135deg, #2a114f 0%, var(--darkbg) 100%);

}

.category-toolbar {

    background: #fff;

    border-radius: 12px;

    box-shadow: 0 2px 12px rgba(0,0,0,.06);

    padding: 16px 20px;

}

.empty-state {

    background: #fff;

    border-radius: 16px;

    border: 2px dashed #e5e7eb;

    padding: 48px 24px;

    text-align: center;

}

.empty-state-icon {

    width: 72px; height: 72px;

    margin: 0 auto 16px;

    background: #fffbeb;

    border-radius: 50%;

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

    font-size: 28px; color: var(--primary);

}



/* Filtre */

.filter-trigger-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 44px;

    padding: 0 20px;

    border: 2px solid var(--primary);

    border-radius: 9999px;

    font-size: 13px;

    font-weight: 700;

    color: #1a1a1a;

    background: #fff;

    transition: all .2s ease;

}

.filter-trigger-btn:hover {

    background: var(--primary);

}

.filter-trigger-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 20px; height: 20px;

    padding: 0 6px;

    border-radius: 9999px;

    background: var(--darkbg);

    color: #fff;

    font-size: 11px;

    font-weight: 800;

}

.filter-chip {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 9999px;

    background: #fffbeb;

    border: 1px solid rgba(255,204,0,.4);

    color: #1a1a1a;

    font-size: 12px;

    font-weight: 600;

}

.filter-chip--clear {

    background: #fff;

    border-color: #e5e7eb;

    color: #6b7280;

    text-decoration: none;

    transition: all .2s;

}

.filter-chip--clear:hover { border-color: var(--primary); color: #1a1a1a; }

.filter-section-title {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

    color: #9ca3af;

    margin-bottom: 14px;

}

.filter-option { display: block; cursor: pointer; }

.filter-option-input { position: absolute; opacity: 0; pointer-events: none; }

.filter-option-box {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 14px 16px;

    border: 1.5px solid #e5e7eb;

    border-radius: 12px;

    transition: all .2s ease;

}

.filter-option-label { font-size: 14px; font-weight: 600; color: #1a1a1a; }

.filter-option-check {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 22px; height: 22px;

    border-radius: 9999px;

    border: 1.5px solid #d1d5db;

    color: transparent;

    transition: all .2s ease;

}

.filter-option-input:checked + .filter-option-box {

    border-color: var(--primary);

    background: #fffbeb;

}

.filter-option-input:checked + .filter-option-box .filter-option-check {

    background: var(--primary);

    border-color: var(--primary);

    color: #1a1a1a;

}

.filter-option:hover .filter-option-box { border-color: #1a1a1a; }

.filter-field-label {

    display: block;

    font-size: 12px;

    font-weight: 600;

    color: #6b7280;

    margin-bottom: 8px;

}

.filter-price-wrap {

    display: flex;

    align-items: center;

    border: 1.5px solid #e5e7eb;

    border-radius: 12px;

    overflow: hidden;

    background: #fff;

    transition: border-color .2s;

}

.filter-price-wrap:focus-within { border-color: var(--primary); }

.filter-price-input {

    flex: 1; min-width: 0;

    border: 0; padding: 12px;

    font-size: 15px; font-weight: 600;

    outline: none; background: transparent;

}

.filter-price-suffix {

    padding-right: 12px;

    font-size: 12px; font-weight: 700;

    color: #9ca3af;

}

.btn-primary {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: var(--primary);

    color: #1a1a1a;

    font-weight: 700;

    border-radius: 12px;

    transition: background .2s;

}

.btn-primary:hover { background: var(--primary-hover); }



/* Sayfalama */

.category-page-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 2.5rem; height: 2.5rem;

    padding: 0 .65rem;

    border-radius: 9999px;

    font-size: .875rem; font-weight: 600;

    color: #1a1a1a;

    border: 1.5px solid rgba(0,0,0,.1);

    background: #fff;

    transition: all .2s ease;

}

.category-page-link:hover { border-color: var(--primary); color: #1a1a1a; }

.category-page-link.is-active {

    background: var(--primary);

    border-color: var(--primary);

    color: #1a1a1a;

    cursor: default;

}

.category-page-ellipsis {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 2rem;

    color: #9ca3af;

    font-weight: 600;

}



@media (max-width: 768px) {
    .search-btn-text { display: none; }
}

/* ===== Elektronik Pazar header + navigation (reference layout) ===== */

.site-header {
    border-bottom: 1px solid #ececec;
}

.site-header-top {
    padding: 14px 0 12px;
}

.site-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px 24px;
}

.site-header-menu-btn {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.brand-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 1.65rem;
}

.brand-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 1.35rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.brand-dark { color: #111; }

.brand-accent { color: var(--primary); }

.brand-tagline {
    margin-top: 2px;
    font-size: .58rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .08em;
    color: #666;
    white-space: nowrap;
}

.site-header-search {
    min-width: 0;
}

.header-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 11px 16px;
    font-size: .875rem;
    color: #333;
    background: transparent;
}

.header-search-input::placeholder { color: #9ca3af; }

.header-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    background: var(--primary);
    color: #111;
    font-size: .875rem;
    font-weight: 700;
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    transition: background .2s;
}

.header-search-btn:hover { background: var(--primary-hover); }

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    align-items: center;
    gap: 10px;
    color: #333;
}

.header-phone i {
    font-size: 1.35rem;
    color: #666;
}

.header-phone-label {
    display: block;
    font-size: .72rem;
    color: #888;
    line-height: 1.1;
}

.header-phone a {
    font-size: .84rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.header-user {
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 1.35rem;
}

.header-cart-mobile {
    position: relative;
    color: #333;
    font-size: 1.2rem;
}

.site-nav {
    background: #fff;
    border-bottom: 1px solid #ececec;
    position: relative;
    z-index: 40;
}

.site-nav-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    min-height: 54px;
}

.nav-all-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.nav-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 54px;
    padding: 0 20px;
    margin-right: 0;
    border: 0;
    border-right: 1px solid #e5e5e5;
    background: transparent;
    font-size: .82rem;
    font-weight: 700;
    color: #222;
    white-space: nowrap;
    cursor: pointer;
}

.nav-all-btn i { font-size: .95rem; color: #333; }

.nav-all-btn:hover,
.nav-all-btn[aria-expanded="true"] { color: #000; }

.nav-all-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: min(920px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.nav-all-wrap.is-open .nav-all-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-all-panel[hidden] { display: block; }

.nav-all-panel-inner { padding: 18px 20px 22px; }

.nav-all-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 24px;
}

.nav-all-group-title {
    display: block;
    margin-bottom: 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #111;
}

.nav-all-group-title:hover { color: var(--primary); }

.nav-all-group ul {
    display: grid;
    gap: 6px;
}

.nav-all-group li a {
    font-size: .74rem;
    color: #666;
    line-height: 1.35;
}

.nav-all-group li a:hover { color: #111; }

.nav-roots-wrap {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
}

.nav-roots {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: 920px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    gap: 0;
}

.nav-item {
    position: static;
    flex: 1 1 0;
    min-width: 0;
    max-width: 168px;
    display: flex;
}

.nav-link,
.nav-link-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    min-height: 54px;
    padding: 8px 10px;
    border: 0;
    border-right: 1px solid #f0f0f0;
    background: transparent;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    color: #333;
    white-space: normal;
    cursor: pointer;
    transition: color .15s, background .15s;
}

.nav-roots > .nav-item:first-child .nav-link,
.nav-roots > .nav-item:first-child .nav-link-more {
    border-left: 1px solid #f0f0f0;
}

@media (min-width: 1280px) {
    .nav-item { max-width: 184px; }
    .nav-link,
    .nav-link-more { font-size: .72rem; padding: 8px 12px; }
}

@media (min-width: 1536px) {
    .nav-roots { max-width: 1040px; }
    .nav-item { max-width: 196px; }
    .nav-link,
    .nav-link-more { font-size: .74rem; }
}

.nav-link:hover,
.nav-link.is-active,
.nav-link-more:hover,
.nav-item.is-open > .nav-link,
.nav-item.is-open > .nav-link-more {
    color: #000;
    background: #fafafa;
}

.nav-chevron {
    flex-shrink: 0;
    font-size: .5rem;
    color: #888;
    transition: transform .2s;
}

.nav-item.is-open .nav-chevron { transform: rotate(180deg); }

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(0);
    transition: opacity .18s, visibility .18s;
    z-index: 45;
}

.nav-item.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu-inner {
    background: #fff;
    border-top: 1px solid #ededed;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    padding: 22px 8px 26px;
}

.mega-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 36px;
}

.mega-col {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-col li + li { margin-top: 2px; }

.mega-col a {
    display: block;
    padding: 3px 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #555;
    line-height: 1.45;
}

.mega-col a:hover { color: #111; }

.nav-item-more { position: static; }

.mega-menu-more .mega-menu-inner-more {
    max-width: 980px;
}

.nav-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border: 0;
    border-left: 1px solid #e5e5e5;
    background: transparent;
    font-size: .82rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
}

.nav-cart-btn:hover { color: #111; }

.nav-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #444;
    font-size: 1.05rem;
}

.nav-cart-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #111;
    font-size: .68rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.nav-cart-badge.is-zero { display: inline-flex; align-items: center; justify-content: center; }

.nav-cart-label strong,
.nav-cart-total { color: #111; font-weight: 700; }

/* Mobile drawer — reference accordion */

.mobile-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #171717;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2;
}

.mobile-panel-head-toggle {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.mobile-panel-head span {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.mobile-cat-nav {
    padding: 0;
    background: #fff;
}

.mobile-cat-branch,
.mobile-cat-link {
    border-bottom: 1px solid #ececec;
}

.mobile-cat-toggle,
.mobile-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 16px;
    border: 0;
    background: #fff;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #222;
    text-align: left;
    cursor: pointer;
}

.mobile-cat-link { text-transform: uppercase; }

.mobile-cat-link-sale {
    font-weight: 700;
    text-transform: none;
}

.mobile-cat-chevron {
    font-size: .72rem;
    color: #bdbdbd;
    transition: transform .2s;
}

.mobile-cat-branch.is-open > .mobile-cat-toggle .mobile-cat-chevron { transform: rotate(180deg); }

.mobile-cat-panel {
    display: none;
    background: #fff;
}

.mobile-cat-branch.is-open > .mobile-cat-panel { display: block; }

.mobile-cat-sublink {
    display: block;
    padding: 12px 16px 12px 28px;
    border-top: 1px solid #f0f0f0;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #555;
}

.mobile-cat-sublink-all {
    color: #111;
    font-weight: 700;
}

.mobile-cat-sublink:hover { color: #000; background: #fafafa; }

.mobile-cat-branch-nested .mobile-cat-toggle {
    padding-left: 28px;
    font-size: .72rem;
}

.mobile-cat-branch-nested .mobile-cat-sublink {
    padding-left: 40px;
}

@media (max-width: 1023px) {
    .site-header-grid {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px 10px;
    }

    .site-header-menu-btn {
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .site-header-brand {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        justify-self: center;
        max-width: 100%;
    }

    .site-header-brand .brand-link {
        justify-content: center;
    }

    .site-header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        gap: 0;
        min-width: 40px;
        justify-content: flex-end;
    }

    .site-header-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .brand-title { font-size: .95rem; }
    .brand-tagline { display: none; }
    .brand-icon { width: 36px; height: 36px; font-size: 1.35rem; }
    .brand-logo-img { height: 40px; }
}

@media (min-width: 1024px) {
    .site-header-menu-btn { display: none !important; }
}

@media (max-width: 640px) {
    .nav-all-grid { grid-template-columns: 1fr 1fr; }
    .mega-columns { grid-template-columns: 1fr; }
}
