/* ==========================================================================
   BTHÂN Bilişim — Merkezi CSS Dosyası (SaaS ve Türkçe Karakter Uyumlu)
   ========================================================================== */

/* --- CSS Değişkenleri ve Temel Ayarlar --- */
:root {
    --siber-blue: var(--secondary-color, #00b4d8);
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   HEADER BÖLÜMÜ (views/layouts/header.php)
   ========================================================================== */

/* KUSURSUZ ORANTIDA VE SIFIR KIRPILMA İLE İZMİR SİLÜETİ HEADER */
.site-header {
    position: relative;
    width: 100%;
    background: url('../../izmir_siluet.png') center center / 100% 100% no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Masaüstünde resmin orijinal 1000x300 (10:3) oranını birebir koruyoruz */
@media (min-width: 992px) {
    .site-header {
        aspect-ratio: 10 / 3;
    }
}

/* Mobilde elemanların sığması için min-height veriyoruz */
@media (max-width: 991px) {
    .site-header {
        min-height: 280px;
        background-size: cover;
        background-position: center center;
    }
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.logo-sub {
    font-size: clamp(8px, 1vw, 10px);
    color: #f4f6f9;
    display: block;
    margin-top: 2px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.search-container {
    flex: 0 1 500px;
    display: flex;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
    border-radius: 30px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-container:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 6px 30px rgba(0, 180, 216, 0.4);
    border-color: var(--siber-blue);
}

.search-bar {
    width: 100%;
    padding: 12px 22px;
    border: none;
    background: rgba(0, 0, 0, 0.45); /* Cam efekti derinleştirildi */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    outline: none;
    font-size: 14px;
    font-weight: 600;
}

.search-bar::placeholder { 
    color: rgba(255, 255, 255, 0.75); 
}

.search-btn {
    padding: 0 25px;
    background: linear-gradient(135deg, var(--siber-blue) 0%, #0077b6 100%);
    border: none;
    color: white;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.search-btn:hover {
    opacity: 0.95;
}

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

.btn-action {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-sepet {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e65f00 100%);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Üye giriş butonları */
.btn-action--register {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: rgba(16,185,129,0.4);
}

.btn-action--logout {
    background: rgba(127, 29, 29, 0.5);
    border-color: rgba(239,68,68,0.35);
    font-size: 11px;
    padding: 8px 14px;
}

.btn-action--user {
    background: linear-gradient(135deg, #002d62, #0ea5e9);
    border-color: rgba(14,165,233,0.4);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
}

.btn-action__avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,215,0,0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #ffd700;
    flex-shrink: 0;
}

.btn-action__name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-sepet:hover {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.6);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ff4500;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 8px rgba(255,69,0,0.5);
    animation: badge-pop 0.3s ease;
}
@keyframes badge-pop {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobil ve Tablet Düzenlemeleri */
@media (max-width: 991px) {
    .header-main {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.5);
    }
    .search-container {
        width: 100%;
        flex: none;
    }
    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .btn-action {
        padding: 8px 16px;
        font-size: 12px;
    }
}


/* ==========================================================================
   NAV-BAR ŞERİDİ — Parliament Mavisi + Altın Yaldız Neon
   ========================================================================== */

.nav-bar {
    width: 100%;
    background: linear-gradient(90deg, #001f3f 0%, #002d62 100%);
    border-top: 2px solid rgba(255, 215, 0, 0.15);
    border-bottom: 2px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 100;
}

.nav-bar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    min-height: 46px;
}

/* Parliament Mavisi içindeki mega-menu öğelerini altın renge dönüştür */
.nav-bar .mega-menu {
    gap: 0;
    height: auto;
    padding: 0;
}

.nav-bar .mega-menu__item:not(:last-child)::after {
    color: rgba(255, 215, 0, 0.25);
}

.nav-bar .mega-menu__link {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 0.7rem 0.75rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transition: color 0.2s ease, text-shadow 0.2s ease, border-bottom-color 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-bar .mega-menu__link:hover,
.nav-bar .mega-menu__item:focus-within > .mega-menu__link {
    color: #fff8dc;
    background: transparent;
    box-shadow: none;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.4);
    border-bottom-color: #ffd700;
}

.nav-bar .mega-menu__chevron {
    stroke: #ffd700;
    opacity: 0.7;
}

.nav-bar .mega-menu__item:hover .mega-menu__chevron,
.nav-bar .mega-menu__item:focus-within .mega-menu__chevron {
    opacity: 1;
}

/* Dropdown panel — nav-bar context */
.nav-bar .mega-panel {
    top: calc(100% + 2px);
    border-radius: 0 0 12px 12px;
    border-top: 2px solid #ffd700;
    background: #001a35;
    border-color: rgba(255, 215, 0, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
}

.nav-bar .mega-panel__title {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.nav-bar .mega-panel__link {
    color: #e2e8f0;
}

.nav-bar .mega-panel__link:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

@media (max-width: 768px) {
    .nav-bar {
        display: none;
    }
}

/* ==========================================================================
   MEGA MENU BÖLÜMÜ (core/Navigation.php)
   ========================================================================== */

.mega-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    height: 100%;
    padding: 0.1rem 0;
}

.mega-menu__item {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mega-menu__item:not(:last-child)::after {
    content: "•";
    margin: 0 0.15rem 0 0.35rem;
    font-size: 0.55rem;
    color: rgba(15, 23, 42, 0.22);
    pointer-events: none;
    user-select: none;
}

.mega-menu__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #0f172a;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.mega-menu__link:hover,
.mega-menu__item:focus-within > .mega-menu__link {
    color: var(--secondary-color, #00b4d8);
    background: rgba(0, 180, 216, 0.06);
    box-shadow: 0 0 12px color-mix(in srgb, var(--secondary-color, #00b4d8) 15%, transparent);
}

.mega-menu__chevron {
    width: 14px;
    height: 14px;
    opacity: 0.55;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.mega-menu__item:hover .mega-menu__chevron,
.mega-menu__item:focus-within .mega-menu__chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    min-width: 300px;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 168, 255, 0.14);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.1),
        0 0 24px color-mix(in srgb, var(--secondary-color, #00a8ff) 12%, transparent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.28s ease,
        transform 0.28s ease,
        visibility 0.28s ease;
    pointer-events: none;
    z-index: 400;
}

.mega-menu__item:hover .mega-panel,
.mega-menu__item:focus-within .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-panel__title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color, #ff6b00);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 168, 255, 0.1);
}

.mega-panel__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
}

.mega-panel__link {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    border-radius: 10px;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.mega-panel__link:hover {
    color: var(--primary-color, #ff6b00);
    background: #fdfdfd;
    transform: translateX(4px);
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary-color, #ff6b00) 15%, transparent);
}

.mega-panel__link::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--secondary-color, #00a8ff);
    opacity: 0.75;
    vertical-align: middle;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mega-panel__link:hover::before {
    opacity: 1;
    transform: scale(1.15);
    background: var(--primary-color, #ff6b00);
}

@media (max-width: 768px) {
    .mega-menu__item:not(:last-child)::after {
        display: none;
    }

    #main-nav.is-open .mega-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.5rem 0 0.75rem;
    }

    #main-nav.is-open .mega-menu__link {
        width: 100%;
        border-radius: 12px;
        background: #fdfdfd;
        border: 1px solid rgba(0, 168, 255, 0.1);
    }

    #main-nav.is-open .mega-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        margin-top: 0.35rem;
        box-shadow: none;
        border-style: dashed;
    }
}


/* ==========================================================================
   HOME BÖLÜMÜ (views/home.php)
   ========================================================================== */

.bthan-home {
    --bh-bg: linear-gradient(to bottom, #ffffff 0%, #f4f6f9 100%);
    --bh-orange: #ff6b00;
    --bh-orange-hot: #ff8533;
    --bh-cyan: #00b4d8;
    --bh-cyan-deep: #0077b6;
    --bh-text: #1a1d24;
    --bh-muted: #5c6370;
    --bh-card: rgba(255, 255, 255, 0.88);
    --bh-shadow: 0 18px 40px rgba(26, 29, 36, 0.08);
    --bh-shadow-hover: 0 28px 50px rgba(255, 107, 0, 0.14);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 3.5rem;
    background: var(--bh-bg);
    color: var(--bh-text);
}

/* --- Mega Hero --- */
.mega-hero {
    position: relative;
    max-width: 1360px;
    margin: 0 auto 2rem;
    padding: 1rem 1rem 0;
}

.mega-hero__viewport {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(255, 107, 0, 0.12), 0 12px 40px rgba(0, 119, 182, 0.1);
}

.mega-hero__track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.mega-slide {
    flex: 0 0 100%;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.mega-slide--grad-orange {
    background: linear-gradient(125deg, #ff6b00 0%, #ff8533 28%, #00b4d8 62%, #0077b6 100%);
    background-size: 220% 220%;
    animation: mega-gradient-flow 9s ease infinite;
}

.mega-slide--grad-blue {
    background: linear-gradient(125deg, #0077b6 0%, #00b4d8 30%, #ff8533 68%, #ff6b00 100%);
    background-size: 220% 220%;
    animation: mega-gradient-flow 9s ease infinite reverse;
}

@keyframes mega-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mega-slide__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.18) 50%, transparent 60%);
    animation: mega-shine 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes mega-shine {
    0%, 100% { transform: translateX(-120%); opacity: 0; }
    50% { transform: translateX(120%); opacity: 1; }
}

.mega-slide__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
    min-height: 420px;
    padding: 2.5rem 2.25rem;
}

.mega-slide__fire {
    font-size: 1.75rem;
    margin-right: 0.35rem;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}

.mega-slide__title {
    font-size: clamp(1.45rem, 3.5vw, 2.35rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.85rem;
    max-width: 20ch;
}

.mega-slide__subtitle {
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
    max-width: 42ch;
    margin-bottom: 1.25rem;
}

.mega-slide__pill {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
}

.mega-slide__cta {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0 1.6rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bh-orange);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mega-slide__cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

.mega-slide__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mega-slide__float {
    animation: mega-float 4.5s ease-in-out infinite;
}

@keyframes mega-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

.mega-slide__product-img {
    width: min(100%, 380px);
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.28));
}

.mega-slide__product-placeholder {
    width: 280px;
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.35);
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.mega-slide__shadow {
    width: 55%;
    height: 18px;
    margin: 1rem auto 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0,0,0,0.25), transparent 70%);
    filter: blur(4px);
}

.mega-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bh-orange);
    background: #ffffff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(26, 29, 36, 0.12);
    z-index: 3;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-hero__arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.25);
}

.mega-hero__arrow--prev { left: 0.35rem; }
.mega-hero__arrow--next { right: 0.35rem; }

.mega-hero__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1rem;
}

.mega-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(26, 29, 36, 0.15);
    cursor: pointer;
    transition: width 0.3s ease, background 0.3s ease;
}

.mega-hero__dot.is-active {
    width: 32px;
    background: linear-gradient(90deg, var(--bh-orange), var(--bh-cyan));
}

/* --- Flash Sale --- */
.flash-sale {
    max-width: 1360px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.flash-sale__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.flash-sale__title {
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--bh-text);
}

.flash-sale__sub {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    color: var(--bh-muted);
}

.flash-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.flash-countdown__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bh-orange);
}

.flash-countdown__digits {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.flash-countdown__digits span {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
    padding: 0.45rem 0.55rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--bh-shadow);
    border: 1px solid rgba(255, 107, 0, 0.15);
}

.flash-countdown__digits strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--bh-cyan-deep);
    line-height: 1;
}

.flash-countdown__digits small {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bh-muted);
    margin-top: 0.15rem;
}

.flash-countdown__sep {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--bh-orange);
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    min-width: auto !important;
    padding: 0 !important;
}

.flash-sale__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.flash-card {
    position: relative;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    animation: card-rise 0.6s ease backwards;
    animation-delay: var(--card-delay, 0s);
}

@keyframes card-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 2;
    padding: 0.35rem 0.65rem;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: #fff;
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(255, 107, 0, 0.45);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 107, 0, 0.35); }
    50% { box-shadow: 0 0 22px rgba(255, 107, 0, 0.65); }
}

.flash-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
    background: var(--bh-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px 18px 0 0;
    box-shadow: var(--bh-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.flash-card:hover .flash-card__link {
    transform: translateY(-8px);
    box-shadow: var(--bh-shadow-hover);
}

.flash-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfc, #f0f3f7);
}

.flash-card__img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
    padding: 0.5rem;
}

.flash-card__placeholder {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--bh-cyan);
}

.flash-card__category {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bh-cyan);
    margin-bottom: 0.35rem;
}

.flash-card__name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bh-text);
    margin-bottom: 0.65rem;
    min-height: 2.5em;
}

.flash-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.85rem;
}

.flash-card__old-price {
    font-size: 0.82rem;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
}

.flash-card__price {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.flash-card__price--cyan {
    color: var(--bh-cyan-deep);
    text-shadow: 0 0 20px rgba(0, 180, 216, 0.2);
}

.flash-card__price--orange {
    color: var(--bh-orange);
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.flash-card__cart,
.flash-card__cart-btn {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: #94a3b8;
    border: none;
    border-radius: 0 0 18px 18px;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.flash-card:hover .flash-card__cart,
.flash-card:hover .flash-card__cart-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    box-shadow: 0 8px 24px rgba(255, 107, 0, 0.4);
}

/* --- Bento Best Sellers --- */
.bento-hit {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1rem;
}

.bento-hit__head {
    margin-bottom: 1.25rem;
}

.bento-hit__title {
    font-size: clamp(1.2rem, 3vw, 1.65rem);
    font-weight: 900;
    color: var(--bh-text);
}

.bento-hit__sub {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    color: var(--bh-muted);
}

.bento-hit__grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    grid-auto-rows: auto !important;
    gap: 1rem;
}

.bento-cell--xl,
.bento-cell--md,
.bento-cell--sm {
    grid-column: auto !important;
    grid-row: auto !important;
    display: flex;
    flex-direction: column;
}

.bento-cell__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.1rem;
    background: var(--bh-card);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--bh-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-cell__link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 180, 216, 0.04));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-cell:hover .bento-cell__link {
    transform: translateY(-8px);
    box-shadow: var(--bh-shadow-hover);
}

.bento-cell:hover .bento-cell__link::after { opacity: 1; }

.bento-cell__rank {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    font-size: 0.72rem;
    font-weight: 900;
    color: var(--bh-orange);
    opacity: 0.85;
}

.bento-cell__media {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    margin-bottom: 0.65rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fafbfc, #eef2f6);
}

.bento-cell--xl .bento-cell__media { min-height: 160px; }

.bento-cell__img {
    max-width: 90%;
    max-height: 160px;
    object-fit: contain;
}

.bento-cell--xl .bento-cell__img { max-height: 160px; }

.bento-cell__placeholder {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--bh-cyan);
    letter-spacing: 0.1em;
}

.bento-cell__category {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bh-cyan);
}

.bento-cell__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bh-text);
    margin: 0.35rem 0;
    line-height: 1.3;
}

.bento-cell--xl .bento-cell__name { font-size: 0.95rem; }

.bento-cell__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bh-cyan-deep);
    margin-bottom: 0.5rem;
}

.bento-cell__cart,
.bento-cell__cart-btn {
    display: block;
    width: 100%;
    padding: 0.55rem 0.9rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: #94a3b8;
    border: none;
    border-radius: 0 0 20px 20px;
    cursor: pointer;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.bento-cell:hover .bento-cell__cart,
.bento-cell:hover .bento-cell__cart-btn {
    background: linear-gradient(135deg, #ff6b00, #ff8533);
    box-shadow: 0 8px 22px rgba(255, 107, 0, 0.38);
}

.bthan-home__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    max-width: 1360px;
    margin: 2.5rem auto 0;
    padding: 1rem;
}

.bthan-home__trust span {
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--bh-cyan-deep);
    background: #ffffff;
    border: 1px solid rgba(0, 180, 216, 0.15);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.06);
}

@media (max-width: 1100px) {
    .flash-sale__grid { grid-template-columns: repeat(2, 1fr); }
    .bento-hit__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .bento-cell--xl,
    .bento-cell--md,
    .bento-cell--sm { grid-column: auto; grid-row: auto; }
}

@media (max-width: 768px) {
    .mega-slide__inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 1.75rem 1.25rem;
    }
    .mega-slide__visual { order: -1; }
    .mega-slide__title { max-width: none; }
    .flash-sale__head { flex-direction: column; align-items: flex-start; }
    .flash-countdown { align-items: flex-start; }
    .flash-sale__grid { grid-template-columns: 1fr; }
    .bento-hit__grid { grid-template-columns: 1fr; }
    .mega-hero__arrow { width: 38px; height: 38px; }
}


/* ==========================================================================
   FOOTER BÖLÜMÜ (views/layouts/footer.php)
   ========================================================================== */

.gem-footer {
    position: relative;
    margin-top: auto;
    background: linear-gradient(180deg, rgba(224,242,254,0.15) 0%, #ffffff 22%, #ffffff 100%);
    overflow: hidden;
}

.gem-footer__wave {
    line-height: 0;
    margin-bottom: -1px;
}

.gem-footer__wave svg {
    display: block;
    width: 100%;
    height: clamp(44px, 5.5vw, 72px);
}

.gem-footer__aura {
    position: absolute;
    inset: 0 0 auto 0;
    height: 200px;
    background:
        radial-gradient(ellipse 70% 100% at 12% 0%, color-mix(in srgb, var(--secondary-color, #00b4d8) 9%, transparent), transparent 58%),
        radial-gradient(ellipse 55% 80% at 88% 0%, color-mix(in srgb, var(--primary-color, #ff6b00) 7%, transparent), transparent 52%);
    pointer-events: none;
}

.gem-footer__body {
    position: relative;
    padding: 2.75rem 1.25rem 2.5rem;
}

.gem-footer__grid {
    display: grid;
    grid-template-columns: 1.38fr 1fr 1fr 1.12fr;
    gap: 0;
}

.gem-footer__col {
    padding: 0 2rem 0 0;
    border-right: 1px solid rgba(0, 180, 216, 0.1);
}

.gem-footer__col:not(:first-child) { padding-left: 2rem; }
.gem-footer__col:last-child { border-right: none; padding-right: 0; }

.gem-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.gem-footer__logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color, #ff6b00), var(--secondary-color, #00b4d8));
}

.gem-footer__logo-mark svg { width: 20px; height: 20px; }

.gem-footer__logo-text {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary-color, #ff6b00), var(--secondary-color, #00b4d8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gem-footer__vision {
    margin-top: 0.85rem;
    max-width: 36ch;
    font-size: 0.88rem;
    line-height: 1.75;
    color: #334155;
}

.gem-footer__kunye {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1rem;
    line-height: 1.5;
    border-top: 1px solid rgba(0, 180, 216, 0.08);
    padding-top: 0.75rem;
}

.gem-footer__kunye strong {
    color: #334155;
    display: block;
    margin-bottom: 0.2rem;
}

.gem-footer__kunye span {
    display: block;
}

.gem-footer__addrs {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.gem-footer__addrs li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.gem-footer__pin {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--secondary-color, #00b4d8);
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.14);
    flex-shrink: 0;
}

.gem-footer__pin--tech {
    color: var(--primary-color, #ff6b00);
    background: rgba(255, 107, 0, 0.08);
    border-color: rgba(255, 107, 0, 0.14);
}

.gem-footer__pin svg { width: 17px; height: 17px; }

.gem-footer__addrs strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0f172a;
}

.gem-footer__addrs span {
    display: block;
    margin-top: 0.08rem;
    font-size: 0.74rem;
    color: #64748b;
}

.gem-footer__social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.gem-footer__soc {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: var(--secondary-color, #00b4d8);
    background: #ffffff;
    border: 1px solid rgba(0, 180, 216, 0.15);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.gem-footer__soc:hover {
    color: #fff;
    background: var(--primary-color, #ff6b00);
    border-color: var(--primary-color, #ff6b00);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary-color, #ff6b00) 38%, transparent);
}

.gem-footer__title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color, #ff6b00);
    margin-bottom: 1rem;
}

.gem-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gem-footer__links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.gem-footer__links a:hover {
    color: var(--secondary-color, #00b4d8);
    padding-left: 5px;
}

/* Gömülü güvenlik yuvaları */
.gem-footer__vault {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(224,242,254,0.35), rgba(255,255,255,0.9));
    border: 1px solid rgba(0, 180, 216, 0.12);
}

.gem-vault-slot {
    padding: 2px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(0,180,216,0.25), rgba(0,180,216,0.06));
}

.gem-vault-slot--blue {
    background: linear-gradient(135deg, rgba(0,180,216,0.35), rgba(0,180,216,0.08));
}

.gem-vault-slot--green {
    background: linear-gradient(135deg, rgba(34,197,94,0.3), rgba(34,197,94,0.08));
}

.gem-vault-slot--orange {
    background: linear-gradient(135deg, rgba(255,107,0,0.3), rgba(255,107,0,0.08));
}

.gem-vault-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8);
    transition: box-shadow 0.25s ease;
}

.gem-vault-slot:hover .gem-vault-card {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.9),
        0 0 18px color-mix(in srgb, var(--secondary-color, #00b4d8) 25%, transparent);
}

.gem-vault-slot--green:hover .gem-vault-card {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.9),
        0 0 18px rgba(34, 197, 94, 0.35);
}

.gem-vault-slot--orange:hover .gem-vault-card {
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.9),
        0 0 18px color-mix(in srgb, var(--primary-color, #ff6b00) 25%, transparent);
}

.gem-vault-card__ico {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    flex-shrink: 0;
}

.gem-vault-card__ico svg { width: 19px; height: 19px; }
.gem-vault-card__ico--green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.gem-vault-card__ico--blue { background: linear-gradient(135deg, var(--secondary-color, #00b4d8), #0096c7); }
.gem-vault-card__ico--orange { background: linear-gradient(135deg, var(--primary-color, #ff6b00), #ff9500); }

.gem-vault-card strong {
    display: block;
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
}

.gem-vault-card span {
    display: block;
    margin-top: 0.06rem;
    font-size: 0.66rem;
    color: #64748b;
}

.gem-footer__paybar {
    border-top: 1px solid rgba(0, 180, 216, 0.1);
    background: #ffffff;
}

.gem-footer__payinner {
    padding: 1.45rem 1.25rem 1.8rem;
    text-align: center;
}

.gem-payments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    max-width: 760px;
    margin: 0 auto 1rem;
}

.gem-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 94px;
    height: 42px;
    padding: 0 1.1rem;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
    cursor: default;
}

.gem-pay--visa { color: #1a1f71; }
.gem-pay--visa:hover { color: #fff; background: linear-gradient(135deg,#1a1f71,#2d3a8c); border-color: #1a1f71; transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 28px rgba(26,31,113,0.35); }

.gem-pay--mc { color: #eb001b; }
.gem-pay--mc:hover { color: #fff; background: linear-gradient(135deg,#eb001b,#f79e1b); border-color: #eb001b; transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 28px rgba(235,0,27,0.32); }

.gem-pay--troy { color: #00a651; }
.gem-pay--troy:hover { color: #fff; background: linear-gradient(135deg,#00a651,#00c853); border-color: #00a651; transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 28px rgba(0,166,81,0.32); }

.gem-pay--amex { color: #006fcf; }
.gem-pay--amex:hover { color: #fff; background: linear-gradient(135deg,#006fcf,#0099ff); border-color: #006fcf; transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 28px rgba(0,111,207,0.32); }

.gem-pay--bank { color: var(--primary-color, #ff6b00); }
.gem-pay--bank:hover { color: #fff; background: linear-gradient(135deg,var(--primary-color,#ff6b00),#ff9500); border-color: var(--primary-color,#ff6b00); transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary-color,#ff6b00) 38%, transparent); }

.gem-footer__copy {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .gem-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
    .gem-footer__col { border-right: none; padding: 0 !important; }
    .gem-footer__col--brand { grid-column: 1 / -1; }
    .gem-footer__col:nth-child(odd):not(.gem-footer__col--brand) {
        padding-right: 1.5rem !important;
        border-right: 1px solid rgba(0,180,216,0.1);
    }
    .gem-footer__col:nth-child(even):not(.gem-footer__col--brand) { padding-left: 1.5rem !important; }
}

@media (max-width: 640px) {
    .gem-footer__grid { grid-template-columns: 1fr; }
    .gem-footer__col:nth-child(odd):not(.gem-footer__col--brand) { border-right: none; padding: 0 !important; }
    .gem-footer__col:nth-child(even):not(.gem-footer__col--brand) { padding: 0 !important; }
    .gem-footer__vision { max-width: none; }
}
