
:root {
    --accent-color: #2ecc71;
    --accent-glow: rgba(46, 204, 113, 0.32);
    --hero-surface: rgba(255, 255, 255, 0.06);
    --hero-border: rgba(255, 255, 255, 0.09);
    --category-border-primary: #2ecc71;
    --category-border-secondary: #f59e0b;
    --category-border-glow: rgba(46, 204, 113, 0.24);
    --card-hover-y: -8px;
}

.category-page {
    min-height: 100vh;
    background: var(--bg-primary);
    padding-top: 50px;
    padding-bottom: 5rem;
}

.category-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--category-border-primary), transparent 82%), transparent 34%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--category-border-secondary), transparent 86%), transparent 28%),
        linear-gradient(135deg, rgba(38, 38, 38, 0.98), rgba(31, 31, 31, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    isolation: isolate;
}

.hero-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--category-border-primary), var(--category-border-secondary));
    opacity: 0.94;
    box-shadow: 0 0 28px var(--category-border-glow);
    animation: heroBorderBreath 2.6s ease-in-out infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

@keyframes heroBorderBreath {
    0% {
        opacity: 0.36;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 16px var(--category-border-glow), 0 0 38px var(--category-border-glow);
    }
    100% {
        opacity: 0.36;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(0, 0, 0, 0);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: -12%;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    filter: blur(42px) brightness(0.36) saturate(1.08);
    transform: scale(1.18);
    opacity: 0.54;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 31, 31, 0.86) 0%, rgba(31, 31, 31, 0.62) 45%, rgba(31, 31, 31, 0.82) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%, rgba(255, 255, 255, 0.03));
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    gap: 1.5rem;
    padding: 1.8rem;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    min-width: 0;
    position: relative;
}

.hero-main::before {
    display: none;
}

.hero-logo-frame {
    position: relative;
    width: 164px;
    height: 164px;
    padding: 0.8rem;
    flex-shrink: 0;
    border-radius: 1.9rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-logo-frame.has-image {
    padding: 0;
}

.hero-logo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 55%);
    pointer-events: none;
}

.hero-wrapper:hover .hero-logo-frame {
    border-color: color-mix(in srgb, var(--category-border-primary), #ffffff 24%);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.24), 0 0 0 1px var(--category-border-glow);
}

.hero-logo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
    display: block;
    background: transparent;
}

.hero-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.18), rgba(255, 255, 255, 0.04));
    color: #fff;
    font-size: 3rem;
}

.hero-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.hero-kicker i {
    color: var(--accent-color);
}

.hero-title {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-desc {
    max-width: 760px;
    margin: 0 0 1.4rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.78rem 1.08rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-pill i {
    color: var(--accent-color);
}

.hero-proof-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    max-width: 640px;
    margin-top: 1rem;
}

.hero-proof-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-height: 98px;
    padding: 1rem 1.05rem;
    border-radius: 1.15rem;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.82), rgba(28, 28, 28, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-proof-card::before {
    display: none;
}

.hero-proof-card::after {
    display: none;
}

.hero-proof-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
}

.hero-proof-icon {
    position: relative;
    z-index: 1;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.hero-proof-card.orders-proof .hero-proof-icon {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.18);
    box-shadow: 0 0 0 8px rgba(255, 107, 107, 0.08);
}

.hero-proof-card.orders-proof {
    background:
        radial-gradient(circle at top left, rgba(255, 107, 107, 0.2), transparent 36%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.86), rgba(28, 28, 28, 0.78));
    border-color: rgba(255, 107, 107, 0.2);
}

.hero-proof-card.rating-proof .hero-proof-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.08);
}

.hero-proof-card.rating-proof {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.86), rgba(28, 28, 28, 0.78));
    border-color: rgba(245, 158, 11, 0.2);
}

.hero-proof-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-width: 0;
}

.hero-proof-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.hero-proof-suffix {
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.15;
}

.hero-proof-meta {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-proof-label {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.hero-side {
    display: flex;
    align-items: stretch;
}

.hero-side-card {
    width: 100%;
    padding: 1.35rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.hero-side-title span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    font-weight: 600;
}

.hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
}

.hero-side-item {
    display: flex;
    align-items: center;
    gap: 0.82rem;
    padding: 0.82rem 0.9rem;
    border-radius: 1rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hero-side-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(46, 204, 113, 0.34);
}

.hero-side-thumb,
.hero-side-icon {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
    flex-shrink: 0;
}

.hero-side-thumb {
    object-fit: cover;
}

.hero-side-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, 0.14);
    color: var(--accent-color);
    font-size: 1.1rem;
}

.hero-side-meta {
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hero-side-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-side-arrow {
    color: rgba(255, 255, 255, 0.42);
    font-size: 1rem;
}

.hero-side-empty {
    padding: 1rem 0.2rem 0.1rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.sub-nav-wrapper {
    position: sticky;
    top: 90px;
    z-index: 10;
    margin-bottom: 2rem;
    padding: 0.6rem;
    border-radius: 1.35rem;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.sub-nav-scroll {
    display: flex;
    gap: 0.9rem;
    overflow-x: auto;
    padding: 0.15rem;
    scrollbar-width: none;
}

.sub-nav-scroll::-webkit-scrollbar {
    display: none;
}

.sub-pill {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.sub-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(46, 204, 113, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.sub-pill img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.sub-pill i {
    color: var(--accent-color);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
}

.toolbar-count {
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 0.88rem;
}

.sort-select {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    color: var(--text-primary);
    font-size: 0.92rem;
    cursor: pointer;
    outline: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Ürün kartı stilleri ortak (.home-product-card) global stylesheet'tedir. */

.empty-box {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 2rem;
}

.empty-box i {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 1.4rem;
    }

    .hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-main::before {
        left: -2rem;
        top: 0;
        width: 220px;
        height: 220px;
        transform: none;
    }

    .hero-logo-frame {
        width: 140px;
        height: 140px;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .category-page {
        padding-top: 30px;
        padding-bottom: 4rem;
    }

    .category-container {
        padding: 0 1rem;
    }

    .hero-wrapper {
        margin-bottom: 1.5rem;
        border-radius: 1.5rem;
    }

    .hero-content {
        gap: 1rem;
        padding: 1rem;
    }

    .hero-main {
        gap: 1.2rem;
    }

    .hero-logo-frame {
        width: 104px;
        height: 104px;
        border-radius: 1.2rem;
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-kicker {
        margin-bottom: 0.8rem;
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .stat-pill {
        padding: 0.58rem 0.92rem;
        font-size: 0.85rem;
    }

    .hero-side-card {
        padding: 1rem;
        border-radius: 1.1rem;
    }

    .hero-side {
        display: none;
    }

    .hero-proof-strip {
        max-width: 100%;
    }

    .hero-proof-card {
        min-height: 90px;
        padding: 0.9rem;
    }

    .hero-proof-icon {
        width: 2.65rem;
        height: 2.65rem;
    }

    .hero-proof-value {
        font-size: 1.3rem;
    }

    .hero-proof-suffix {
        font-size: 0.88rem;
    }

    .sub-nav-wrapper {
        top: 60px;
        margin-bottom: 1.5rem;
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .sub-pill {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        border-radius: 0.8rem;
    }

    .sub-pill img {
        width: 20px;
        height: 20px;
    }

    .toolbar {
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .toolbar-title {
        font-size: 1.25rem;
    }

    .sort-select {
        padding: 0.55rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 0.55rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-frame {
        width: 82px;
        height: 82px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .stat-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.78rem;
    }

    .hero-side-name {
        font-size: 0.9rem;
    }

    .hero-proof-strip {
        grid-template-columns: 1fr;
    }

    .hero-proof-card {
        min-height: 82px;
        padding: 0.82rem 0.88rem;
    }

    .hero-proof-value {
        font-size: 1.15rem;
    }

    .hero-proof-suffix {
        font-size: 0.8rem;
    }

    .hero-proof-meta {
        font-size: 0.64rem;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-title {
        font-size: 1.1rem;
    }

    .sort-select {
        width: 100%;
    }

    .products-grid {
        gap: 0.5rem;
    }

    .p-info {
        padding: 0.5rem;
    }

    .p-title {
        margin-bottom: 0.4rem;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .p-price-current {
        font-size: 0.95rem;
    }

    .p-price-old {
        font-size: 0.7rem;
    }

    .p-discount-badge {
        padding: 0.15rem 0.3rem;
        font-size: 0.65rem;
    }

    .p-add-cart-btn {
        padding: 0.42rem;
        font-size: 0.8rem;
    }

    .p-add-cart-btn span {
        display: none;
    }
}

/* Font Awesome -> Remixicon: FA glifleri em kutusunu dolduruyordu, Remixicon glifleri ~%83; gorunen boyut ve
   satir yuksekligi eskisiyle (FA: inline-block, line-height 1) ayni kalsin diye */
.hero-logo-fallback > [class^="ri-"],
.hero-kicker > [class^="ri-"],
.stat-pill > [class^="ri-"],
.hero-proof-icon > [class^="ri-"],
.hero-side-icon > [class^="ri-"],
.sub-pill > [class^="ri-"] {
    display: inline-block;
    font-size: 1.2em;
    line-height: 1;
}

.hero-side-meta > .hero-side-arrow {
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
}

.empty-box > [class^="ri-"] {
    display: inline-block;
    font-size: 4.8rem;
    line-height: 1;
}
