:root {
    --marvel-red: #D32F2F;
    --silver: #eaeaea;
    --silver-light: #F8F9FA;
    --charcoal: #1a1a1a;
    --white: #ffffff;
    --gray-text: #666666;
    --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.05);
    --radius-premium: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* GLOBAL SPACING STANDARDS (Kariyer Belge Pro) */
.section-container {
    max-width: 1400px;
    margin: 100px auto;
    /* Professional breathing room between sections */
    padding: 0 30px;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    /* Forces 4 columns on PC */
    gap: 40px !important;
    /* Standardized gap */
}

@media (max-width: 1200px) {
    .pro-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .pro-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}

@media (max-width: 600px) {
    .section-container {
        margin: 60px auto;
        padding: 0 20px;
    }

    .pro-grid {
        grid-template-columns: 1fr !important;
        /* 1 column on phone */
        gap: 30px !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* HEADER & NAVIGATION (RED & WHITE STYLE) */
.top-nav-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--charcoal);
}

.header-container-flex {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    gap: 20px;
}

.top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-right a {
    color: var(--charcoal);
    transition: 0.3s;
    text-decoration: none;
}

.top-right a:hover {
    color: var(--marvel-red);
}

.main-header-uzman {
    background: #fff;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.header-search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
}

.header-search-box form {
    display: flex;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    height: 50px;
}

.header-search-box input {
    flex: 1;
    border: none;
    padding: 0 20px;
    outline: none;
    font-size: 0.95rem;
}

.header-search-box button {
    background: var(--marvel-red);
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: 0.3s;
}

.header-search-box button:hover {
    opacity: 0.9;
}

.header-tools {
    display: flex;
    gap: 30px;
    align-items: center;
    color: var(--charcoal);
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--charcoal);
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.tool-item:hover {
    color: var(--marvel-red);
}

.tool-item i {
    font-size: 1.6rem;
    color: var(--marvel-red);
}

.tool-item .text {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.tool-item .text strong {
    font-weight: 800;
    font-size: 0.85rem;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--marvel-red);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50px;
    font-weight: 900;
    border: 2px solid #fff;
}

.sub-nav-bar {
    background: var(--marvel-red);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.1);
    padding: 0;
}

.cat-selector {
    background: #f9f9f9;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    font-size: 0.9rem;
}

.cat-selector:hover {
    border-color: var(--marvel-red);
    color: var(--marvel-red);
}

.desktop-menu ul {
    list-style: none;
    display: flex;
    gap: 40px;
    justify-content: center;
    padding: 15px 0;
    margin: 0;
}

.desktop-menu ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.desktop-menu ul li a:hover {
    opacity: 0.8;
}

/* GRID ALIGNMENT (4'LÜ DİZİLİM) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    /* MASAÜSTÜNDE 4 RESİM YANYANA */
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* SIDEBAR ALIGNMENT (SOLA YASLA) */
.sidebar-menu li a,
.sidebar .cat-toggle {
    color: var(--charcoal);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
}

.sidebar-menu li a i,
.sidebar .cat-toggle i:first-child {
    color: var(--marvel-red);
    transition: 0.3s;
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.sidebar-menu li a:hover,
.sidebar .cat-toggle:hover {
    background: var(--marvel-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.sidebar-menu li a:hover i,
.sidebar .cat-toggle:hover i {
    color: #fff !important;
}

.sidebar-menu li a.active {
    background: #fdf2f2;
    color: var(--marvel-red);
}

.sidebar .cat-toggle .arrow {
    margin-left: auto;
}

/* OKU EN SAĞA ATSIN */

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
}

/* IKON GENIŞLIĞI SABIT */

/* LIQUID MODAL (GİRİŞ YAP) - KİLİTLENME ONARIMI */
.liquid-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
    /* ÇOK ÜSTTE */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* VARSAYILAN KAPALI */
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(0px);
}

.liquid-modal-wrapper.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    /* BURADA AÇILMALI */
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.5);
}

.modal-content-box {
    transform: scale(0.8) translateY(50px);
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    max-width: 450px;
}

.liquid-modal-wrapper.active .modal-content-box {
    transform: scale(1) translateY(0);
}

.liquid-input {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    outline: none;
    font-weight: 600;
}

.liquid-btn-google {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 20px;
}

.liquid-btn-google:hover {
    background: #f5f5f5;
}

/* MOBİL HEADER TEMİZLİĞİ */
.mobile-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    height: 70px;
    display: none;
    /* Desktop'ta gizli */
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Arama Üstü Rozetler */
.search-badges-row span {
    white-space: nowrap;
    transition: 0.3s;
    cursor: default;
}

.search-badges-row span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .main-header-uzman {
        padding: 15px 0 !important;
        display: block !important;
    }

    .main-header-uzman .header-container-flex {
        flex-direction: row !important;
        /* MOBİLDE DE YAN YANA */
        flex-wrap: wrap;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px;
        padding: 0 15px;
    }

    .header-search-box {
        margin: 10px 0 0 0 !important;
        width: 100% !important;
        max-width: none !important;
        order: 3;
        /* ARAMA EN ALTA */
    }

    .header-tools {
        position: static !important;
        order: 2;
        /* KULLANICI SAĞA */
    }

    .logo {
        order: 1;
        /* LOGO SOLA */
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .logo img {
        height: 50px !important;
    }

    .search-badges-row {
        width: 100%;
        justify-content: center;
        margin-top: 5px;
        order: 4;
        /* ROZETLER ARAMANIN ALTINA/ÜSTÜNE */
    }

    .sub-nav-bar {
        display: none !important;
    }

    .mobile-header,
    .mobile-search-row {
        display: none !important;
    }
}

.m-logo img {
    height: 60px;
}

.m-ham {
    font-size: 1.5rem;
    color: var(--marvel-red);
}

/* NAV DROPDOWN (HEADER) */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #fff;
    width: 650px;
    /* 2 sütun genişliğine yetecek alan */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    list-style: none;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border-top: 3px solid var(--marvel-red);
    /* Üst kapsayıcıdan (desktop-menu ul) gelen Flex stilini ezmek için Grid kullanıyoruz */
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin: 0 !important;
}

.nav-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.nav-dropdown-content::-webkit-scrollbar-thumb {
    background: var(--marvel-red);
    /* Scrollbar kırmızı oldu */
    border-radius: 10px;
}

.nav-dropdown-wrapper:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content li a {
    display: block;
    padding: 3px 15px;
    /* Boşluklar çok büyük ölçüde daraltıldı (%80 Düşürüldü) */
    color: var(--charcoal) !important;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    /* Sidebar ile aynı */
    transition: 0.3s;
    white-space: nowrap;
    /* Tek satıra yazsın */
}

.nav-dropdown-content li a:hover {
    background: var(--marvel-red) !important;
    color: #ffffff !important;
    padding-left: 20px;
    border-radius: 5px;
    /* Yumuşak bir köşe verdim */
}

/* SEARCH AUTOCOMPLETE DROPDOWN (PREMIUM) */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 600px;
    /* Daha geniş arama kutusu */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    padding: 20px 0;
}

/* SAYFALAMA (PAGINATION) Ortak Stilleri (GLOBAL) */
.pagination-wrapper {
    margin-top: 50px !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    list-style-type: none !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pagination li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 45px !important;
    height: 45px !important;
    padding: 0 15px !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--charcoal) !important;
    text-decoration: none !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    font-size: 1rem !important;
}

.pagination li.active a,
.pagination li a:hover {
    background: var(--marvel-red) !important;
    color: #fff !important;
    border-color: var(--marvel-red) !important;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 1024px) {
    .search-results-dropdown {
        width: 100%;
    }
}

.search-results-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-section-title {
    padding: 0 25px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.search-suggestions {
    padding: 0 25px 15px 25px;
    display: flex;
    gap: 15px;
}

.search-suggestions a {
    color: var(--charcoal);
    font-weight: 700;
    text-decoration: underline;
    font-size: 0.9rem;
}

.search-divider {
    height: 1px;
    background: #eee;
    margin: 0 0 15px 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    text-decoration: none;
    transition: 0.3s;
    gap: 20px;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-img-box {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-info {
    flex: 1;
}

.search-info .name {
    font-weight: 800;
    color: var(--charcoal);
    font-size: 1rem;
    line-height: 1.3;
}

.search-info .cat {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

.search-see-all {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #f5f5f5;
    margin-top: 10px;
    color: var(--charcoal);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
}

.search-see-all:hover {
    background: #eee;
}

/* ÜRÜN DETAY SAYFASI (PREMIUM) */
.product-detail-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
}

.p-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.p-detail-left {
    position: relative;
}

.p-main-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    overflow: hidden;
    position: relative;
}

.p-main-img img {
    width: 100%;
    display: block;
}

.p-discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--marvel-red);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 5;
}

.p-gallery {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.p-gallery-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid #eee;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.p-gallery-item.active {
    border-color: var(--marvel-red);
}

.p-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p-title {
    font-size: 2.22rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.25;
}

.p-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 700;
}

.p-meta span i {
    color: #2ecc71;
    margin-right: 5px;
}

.p-price-row {
    margin: 15px 0;
}

.p-old-price {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.p-current-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--marvel-red);
}

.p-options-title {
    font-weight: 900;
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: 15px;
}

.p-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.p-option-item:hover {
    border-color: #ddd;
    background: #fafafa;
}

.p-option-item input {
    width: 18px;
    height: 18px;
}

.p-option-item label {
    flex: 1;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.p-option-item .opt-price {
    color: #888;
    font-size: 0.85rem;
    font-weight: 700;
}

.p-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.p-btn-cart {
    background: #001f3f;
    color: #fff !important;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
}

.p-btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    padding: 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 992px) {
    .p-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-detail-container {
        padding: 0 20px;
        margin: 20px auto;
    }
}

/* TABS (PREMIUM) */
.p-tabs-wrapper {
    margin-top: 60px;
    border-top: 1px solid #eee;
}

.p-tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    padding-top: 20px;
    overflow-x: auto;
}

.p-tab-trigger {
    padding: 15px 0;
    font-weight: 800;
    color: #999;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.p-tab-trigger.active {
    color: var(--charcoal);
    border-color: var(--marvel-red);
}

.p-tab-content {
    padding: 40px 0;
    display: none;
}

.p-tab-content.active {
    display: block;
}

.desc-box {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

.desc-box ul {
    padding-left: 20px;
    margin-top: 15px;
}

.desc-box li {
    margin-bottom: 10px;
}

/* DESKTOP HAMBURGER COLOR FIX */
.desktop-ham i {
    color: var(--marvel-red) !important;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 550px;
    background: radial-gradient(circle at center, #fff 0%, #eee 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 30px;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--marvel-red);
    color: #fff;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 800;
}

.btn-secondary {
    background: var(--white);
    color: var(--marvel-red);
    border: 2px solid var(--marvel-red);
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 800;
}

.hero-brush {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    z-index: 1;
    opacity: 0.15;
}

/* BOTTOM NAV (MOBILE) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 2000;
    padding: 12px 0;
}

/* NAV DROPDOWN */
nav ul li {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 240px;
    box-shadow: var(--shadow-premium);
    z-index: 1000;
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 15px 0;
    border-top: 3px solid var(--marvel-red);
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    color: var(--charcoal);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}

.dropdown-content li a:hover {
    background: var(--silver-light);
    color: var(--marvel-red);
    padding-left: 25px;
}

nav ul li:hover .dropdown-content {
    display: block;
}

.bottom-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gray-text);
}

.nav-item i {
    font-size: 1.4rem;
    color: var(--charcoal);
}

.nav-item.active i,
.nav-item.active {
    color: var(--marvel-red);
}

/* PRODUCT GRID */
.section-title {
    max-width: 1400px;
    margin: 60px auto 30px;
    padding: 0 30px;
    font-size: 1.8rem;
    font-weight: 800;
    border-left: 6px solid var(--marvel-red);
}

.card-grid {
    max-width: 1400px;
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 30px;
}

.p-card {
    background: #fff;
    border-radius: var(--radius-premium);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: 0.4s;
}

.p-card:hover {
    transform: translateY(-10px);
}

.p-img {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--marvel-red);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 4px;
}

.p-content {
    padding: 20px;
}

.p-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 10px;
    height: 3.8em;
    overflow: hidden;
}

.p-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-bottom: 15px;
}

.p-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--marvel-red);
}

/* RIBBON (KURDELE) */
.p-ribbon {
    position: absolute;
    top: 10px;
    left: -5px;
    background: var(--marvel-red);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 10;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.p-ribbon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    border-left: 5px solid transparent;
    border-top: 5px solid #801313;
}

/* Kart Alt Alanı Düzeni */
.p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* SIDEBAR */
.sidebar-mask {
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

/* SIDEBAR PREMIUM WHITE */
.sidebar {
    position: fixed;
    z-index: 3001;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    /* BEYAZ ZEMİN */
    transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 30px 20px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar .close-btn {
    color: var(--charcoal);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar .close-btn:hover {
    color: var(--marvel-red);
    transform: rotate(90deg);
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a,
.sidebar .cat-toggle {
    color: var(--charcoal);
    /* SİYAH YAZI */
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

/* HOVER DURUMU: KIRMIZI DOLGU - BEYAZ YAZI */
.sidebar ul li a:hover,
.sidebar .cat-toggle:hover,
.sidebar ul li a.active,
.sidebar .cat-toggle.active {
    background: var(--marvel-red);
    /* SİTE KIRMISI DOLGU */
    color: #ffffff !important;
    /* BEYAZ YAZI */
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.sidebar ul li a i,
.sidebar .cat-toggle i {
    font-size: 1rem;
    transition: 0.3s;
}

/* KATEGORİ LİSTESİ (ACCORDION) */
.sidebar .cat-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    margin: 0 5px;
}

.sidebar .cat-list.show {
    max-height: 400px;
    /* Ekrana sığması için bir sınır */
    overflow-y: auto;
    /* Kaydırma çubuğu aktif */
    transition: max-height 0.8s ease-in;
}

/* Sidebar scrollbar özelleştirmesi */
.sidebar .cat-list::-webkit-scrollbar {
    width: 6px;
}

.sidebar .cat-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.sidebar .cat-list li a {
    padding: 10px 30px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 0;
}

.sidebar .cat-list li a:hover {
    background: var(--marvel-red) !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    header,
    nav {
        display: none;
    }

    .bottom-nav {
        display: block;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 400px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-brush {
        width: 100%;
        right: -50px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-top: 40px;
    }

    body {
        padding-bottom: 70px;
    }


    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        background: #fff;
        border-bottom: 2px solid var(--marvel-red);
        position: sticky;
        top: 0;
        z-index: 1000;
        height: 60px;
    }

    .m-logo img {
        height: 35px;
        display: block;
    }
}