/* YÖN V1 — Yapısal layout (mega menü, hero, modal, grid) */

body.yon-v1-theme * { box-sizing: border-box; }

body.yon-v1-theme .mobile-shell,
body.yon-v1-theme .yon-shell {
    max-width: var(--yon-shell-max, 480px);
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

body.yon-v1-theme #homePage {
    width: 100%;
    overflow-x: hidden;
}

/* Header */
body.yon-v1-theme .app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 8px;
    max-width: var(--yon-shell-max, 480px);
    margin: 0 auto;
}

body.yon-v1-theme .header-logo {
    text-align: center;
    line-height: 1.1;
    min-width: 0;
}

body.yon-v1-theme .header-right {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

body.yon-v1-theme .menu-toggle,
body.yon-v1-theme .header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

body.yon-v1-theme .header-btn.has-dot::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Sidebar + Mega Menü */
body.yon-v1-theme .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

body.yon-v1-theme .sidebar-overlay.show {
    display: block;
}

body.yon-v1-theme .mega-menu {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: min(92vw, 400px) !important;
    max-width: 480px !important;
    height: 100% !important;
    height: 100dvh !important;
    z-index: 201 !important;
    display: flex !important;
    flex-direction: column !important;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

body.yon-v1-theme .mega-menu.open {
    left: 0 !important;
}

body.yon-v1-theme .mega-menu-header {
    position: relative;
    flex-shrink: 0;
    padding: 18px 16px 14px;
}

body.yon-v1-theme .mega-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

body.yon-v1-theme .mega-brand {
    text-align: center;
    padding-right: 40px;
}

body.yon-v1-theme .mega-brand img {
    max-height: 48px;
    margin-bottom: 6px;
}

body.yon-v1-theme .mega-brand h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
}

body.yon-v1-theme .mega-brand p {
    margin: 4px 0 0;
    font-size: 0.75rem;
}

body.yon-v1-theme .mega-search {
    padding: 12px 16px;
    flex-shrink: 0;
}

body.yon-v1-theme .mega-search-wrap {
    position: relative;
}

body.yon-v1-theme .mega-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

body.yon-v1-theme .mega-search input,
body.yon-v1-theme #megaSearchInput {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px 12px 40px;
    font-size: 16px;
    outline: none;
    border: 1px solid var(--yon-border);
}

body.yon-v1-theme .mega-menu-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 16px;
}

body.yon-v1-theme .mega-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 16px 14px;
}

body.yon-v1-theme .mega-quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: left;
}

body.yon-v1-theme .mega-section-title {
    padding: 8px 16px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.yon-v1-theme .mega-cat-group {
    margin: 0 12px 8px;
    border-radius: 14px;
    overflow: hidden;
}

body.yon-v1-theme .mega-cat-group.hidden {
    display: none !important;
}

body.yon-v1-theme .mega-cat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

body.yon-v1-theme .mega-cat-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

body.yon-v1-theme .mega-cat-info {
    flex: 1;
    min-width: 0;
}

body.yon-v1-theme .mega-cat-name {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
}

body.yon-v1-theme .mega-cat-count {
    font-size: 0.72rem;
    opacity: 0.7;
}

body.yon-v1-theme .mega-sub-list {
    display: none;
    padding: 0 14px 10px;
}

body.yon-v1-theme .mega-cat-group.open .mega-sub-list {
    display: block;
}

body.yon-v1-theme .mega-sub-item {
    padding: 10px 12px;
    font-size: 0.82rem;
    cursor: pointer;
    border-radius: 8px;
}

body.yon-v1-theme .mega-menu-footer {
    display: flex;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-shrink: 0;
}

body.yon-v1-theme .mega-footer-btn {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
}

/* Alt navigasyon */
body.yon-v1-theme .bottom-nav.yon-bottom-nav {
    display: block !important;
    grid-template-columns: none !important;
}

body.yon-v1-theme .yon-bottom-nav-inner {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    width: 100%;
}

body.yon-v1-theme .bottom-nav:not(.yon-bottom-nav) {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: var(--yon-shell-max, 480px) !important;
    margin: 0 auto !important;
    transform: none !important;
    z-index: 100 !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: end !important;
}

body.yon-v1-theme .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    position: relative;
    min-width: 0;
    border: none;
    background: transparent;
}

body.yon-v1-theme .nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    transition: background 0.2s;
}

body.yon-v1-theme .nav-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    margin-top: 2px;
}

body.yon-v1-theme .nav-center {
    grid-column: 3;
    justify-self: center;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    animation: none !important;
}

body.yon-v1-theme .cart-badge {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Hero — sadeleştirilmiş */
body.yon-v1-theme .hero-section {
    position: relative;
    overflow: visible;
}

body.yon-v1-theme .hero-cinema {
    position: relative;
}

body.yon-v1-theme .hero-cinema-frame {
    position: relative;
    padding: 0;
    margin: 0;
}

body.yon-v1-theme .hero-cinema-frame::before,
body.yon-v1-theme .hero-cinema-frame::after {
    display: none !important;
}

body.yon-v1-theme .hero-panels-wrap {
    position: relative;
    height: var(--bz-hero-h) !important;
    border-radius: var(--yon-radius-xl) !important;
    overflow: hidden !important;
    background: #0f1f2d !important;
    box-shadow: var(--yon-shadow-lg) !important;
}

body.yon-v1-theme .hero-panels {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

body.yon-v1-theme .hero-panels::-webkit-scrollbar {
    display: none;
}

body.yon-v1-theme .hero-panel {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: center;
    position: relative;
    height: 100%;
}

body.yon-v1-theme .hero-panel-inner {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-right: none !important;
    clip-path: none !important;
    transform: none !important;
}

body.yon-v1-theme .hero-panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
    pointer-events: none;
}

body.yon-v1-theme .hero-panel-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

body.yon-v1-theme .hero-panel-text {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 4;
    padding: 8px 16px;
    text-align: center;
    pointer-events: none;
}

body.yon-v1-theme .hero-panel-text.pos-top {
    top: 0;
    bottom: auto;
    padding: 20px 16px 0;
}

body.yon-v1-theme .hero-panel-text.pos-bottom {
    top: auto;
    bottom: 0;
    padding: 0 16px 52px;
}

body.yon-v1-theme .hero-title-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 18px;
    line-height: 1.15;
    background: rgba(6, 20, 32, 0.58);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

body.yon-v1-theme .hero-t-norm {
    display: block;
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    line-height: 1.3;
    text-align: center;
}

body.yon-v1-theme .hero-title-stack .hero-t-norm:last-child {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

body.yon-v1-theme .hero-t-em {
    display: block;
    width: 100%;
    margin: 2px 0;
    font-family: var(--font-brand);
    font-size: clamp(1.4rem, 6vw, 2rem);
    font-weight: 800;
    color: var(--yon-accent-light, #dbb44a);
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
    letter-spacing: 0.02em;
    line-height: 1.1;
    text-align: center;
}

body.yon-v1-theme .hero-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 10;
    padding: 0;
    pointer-events: auto;
}

body.yon-v1-theme .hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
}

body.yon-v1-theme .hero-dot.active {
    background: var(--yon-accent, #c49a2e);
    width: 22px;
    border-radius: 6px;
}

body.yon-v1-theme .hero-panel-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-accent, #1a2832);
    color: rgba(255,255,255,0.15);
    font-size: 2.5rem;
    z-index: 0;
}

body.yon-v1-theme .hero-panel.no-image .hero-panel-bg {
    z-index: 2;
    opacity: 1 !important;
    visibility: visible !important;
}

body.yon-v1-theme .hero-panel:not(.no-image) .hero-panel-bg {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.yon-v1-theme .hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

body.yon-v1-theme .hero-nav-btn.prev { left: 10px; }
body.yon-v1-theme .hero-nav-btn.next { right: 10px; }

@media (min-width: 768px) {
    body.yon-v1-theme .hero-panels-wrap {
        height: clamp(320px, 36vw, 420px) !important;
    }

    body.yon-v1-theme .hero-title-stack {
        max-width: 480px;
        padding: 18px 24px;
        gap: 6px;
    }

    body.yon-v1-theme .hero-t-norm {
        font-size: 0.82rem;
    }

    body.yon-v1-theme .hero-t-em {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }

    body.yon-v1-theme .hero-nav-btn {
        width: 44px !important;
        height: 44px !important;
    }
}

/* Ürün scroll */
body.yon-v1-theme .product-scroll {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 0 16px 16px;
    scroll-snap-type: x mandatory;
}

body.yon-v1-theme .product-card-h {
    flex: 0 0 var(--bz-product-w);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: hidden;
}

body.yon-v1-theme .product-card-h-media {
    position: relative;
    overflow: hidden;
}

body.yon-v1-theme .product-card-h-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

body.yon-v1-theme .product-card-h-body {
    flex: 1;
}

body.yon-v1-theme .product-card-h-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

body.yon-v1-theme .product-card-h-add {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Kategori grid */
body.yon-v1-theme .categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px 20px;
}

body.yon-v1-theme .category-card-h:first-child {
    grid-column: span 1;
}

/* Kategori kart — dergi düzeni (cat-info img dışında) */
body.yon-v1-theme .category-card-h {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

body.yon-v1-theme .category-card-h .cat-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

body.yon-v1-theme .category-card-h .cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.yon-v1-theme .category-card-h .cat-info {
    position: static;
    padding: 10px 12px;
    flex: 1;
}

body.yon-v1-theme .category-card-h .cat-img-overlay,
body.yon-v1-theme .category-card-h .cat-icon {
    display: none;
}

body.yon-v1-theme .category-card-h .cat-icon-fallback {
    display: none;
}

body.yon-v1-theme .category-card-h .cat-img-wrap.show-fallback .cat-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.yon-v1-theme .category-card-h .cat-arrow {
    flex-shrink: 0;
}

/* Ürün sayfası */
body.yon-v1-theme .products-page {
    display: none;
    padding: 0 0 20px;
}

body.yon-v1-theme .page-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.yon-v1-theme .back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
}

body.yon-v1-theme .page-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.yon-v1-theme .search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px;
}

body.yon-v1-theme .search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    background: transparent;
}

body.yon-v1-theme .product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
}

body.yon-v1-theme .product-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    align-items: center;
}

body.yon-v1-theme .product-img {
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 12px;
}

body.yon-v1-theme .product-img-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--yon-surface-2, #f1f5f9);
}

body.yon-v1-theme .product-info {
    flex: 1;
    min-width: 0;
}

body.yon-v1-theme .product-name {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

body.yon-v1-theme .product-desc {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modallar */
body.yon-v1-theme .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    align-items: flex-end;
    justify-content: center;
}

body.yon-v1-theme .modal-overlay.show {
    display: flex;
}

body.yon-v1-theme .modal-content {
    width: 100%;
    max-width: var(--yon-shell-max, 480px);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: yonSlideUp 0.3s ease;
}

@keyframes yonSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

body.yon-v1-theme .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    flex-shrink: 0;
}

body.yon-v1-theme .modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

body.yon-v1-theme .modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    color: inherit;
}

body.yon-v1-theme .modal-body {
    padding: 16px 20px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Özellik grid */
body.yon-v1-theme .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

body.yon-v1-theme .feature-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.yon-v1-theme .feature-box-title,
body.yon-v1-theme .feature-box-desc {
    margin: 0;
}

/* Loading / empty */
body.yon-v1-theme .loading,
body.yon-v1-theme .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--yon-muted);
}

body.yon-v1-theme .loading i,
body.yon-v1-theme .empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Scroll progress */
body.yon-v1-theme .yon-scroll-progress {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 480px);
    height: 3px;
    z-index: 200;
    pointer-events: none;
}

body.yon-v1-theme .yon-scroll-progress span {
    display: block;
    height: 100%;
    width: 0%;
}

/* Tema paneli */
body.yon-v1-theme .yon-theme-switch {
    position: relative;
}

body.yon-v1-theme .yon-theme-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    z-index: 1200;
    padding: 6px;
    border-radius: 14px;
}

body.yon-v1-theme .yon-theme-panel.open {
    display: block;
}

body.yon-v1-theme .yon-theme-opt {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Kategori şeridi */
body.yon-v1-theme .yon-cat-strip {
    display: flex;
    overflow-x: auto;
    gap: 8px;
}

/* FAB */
body.yon-v1-theme .yon-fab-top {
    position: fixed;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
}

body.yon-v1-theme .yon-fab-top.show {
    opacity: 1;
    visibility: visible;
}

/* Fiyat */
body.yon-v1-theme .bz-price-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
}

/* Lang dropdown */
body.yon-v1-theme .lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1300;
    background: var(--yon-surface, #fff);
    border: 1px solid var(--yon-border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

body.yon-v1-theme .lang-dropdown.show {
    display: block;
}

body.yon-v1-theme .lang-dropdown-head {
    padding: 10px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--yon-muted, #64748b);
    border-bottom: 1px solid var(--yon-border, #e2e8f0);
    position: sticky;
    top: 0;
    background: inherit;
}

body.yon-v1-theme .lang-btn {
    position: relative;
}

body.yon-v1-theme .lang-dropdown a {
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--yon-text, #0f172a);
    font-size: 0.85rem;
    font-weight: 500;
    gap: 8px;
}

body.yon-v1-theme .lang-dropdown a:hover {
    background: rgba(5, 150, 105, 0.08);
}
