/* ======================== */
/* VISCORA - Ultra Modern Premium CSS */
/* ======================== */

/* === 1. TEMEL AYARLAR === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Renkler */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --accent-color: #f59e0b;
    --accent-pink: #ec4899;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    position: relative;

    /* Fixed header için boşluk - announcement bar (40px) + header-top (40px) + header-main (100px) */
    padding-top: 180px;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    body::before {
        animation: backgroundMove 30s ease-in-out infinite;
    }
}

@keyframes backgroundMove {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(5%, -5%) rotate(1deg);
    }

    66% {
        transform: translate(-5%, 5%) rotate(-1deg);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === 2. HEADER & NAVIGATION === */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);

    /* Fixed positioning - scroll yaparken her zaman üstte sabit kalır */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;

    /* Z-index - her zaman en üstte */
    z-index: 9999;

    /* Performance optimizasyonu */
    will-change: transform;
    transform: translateZ(0);
    /* GPU acceleration */
    -webkit-transform: translateZ(0);

    transition: all var(--transition-normal);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

/* header.scrolled padding change removed for stability */

.header-top {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.header-top-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    white-space: nowrap;
    transition: color 0.2s ease;
    position: relative;
}

.header-top-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

.header-top-item i {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.header-top-item:hover {
    color: #c7d2fe;
}

.header-top-item:hover i {
    opacity: 1;
}

.header-main {
    padding: var(--spacing-md) 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    /* XL yerine LG ile daha dengeli bir merkezleme */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.logo-container:hover .logo-img {
    transform: rotate(-5deg) scale(1.05);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0e7490, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    /* sm (1rem) yerine daha dar bir gap */
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 70%;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu a.active::after {
    width: 70%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    transition: transform var(--transition-normal);
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

/* Header Search */
.header-search {
    flex: 1;
    /* Diğer alanlara göre kendini dengeler */
    max-width: 450px;
    min-width: 220px;
    margin: 0 1.5rem;
    /* Yanlardan dengeli boşluk */
    position: relative;
    transition: all 0.3s ease;
}

.header-search input {
    width: 100%;
    padding: 10px 20px;
    padding-right: 45px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.header-search input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.header-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
}

/* Header Search Results Dropdown */
#header-search-results {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f5f9;
}

#header-search-results::-webkit-scrollbar {
    width: 6px;
}

#header-search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#header-search-results::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
}

#header-search-results a {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

#header-search-results a:last-of-type {
    border-bottom: none !important;
}

.header-action-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.header-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.header-action-btn .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid white;
}

.header-search-mobile-btn {
    display: none;
}

@media (max-width: 1024px) {
    .header-search {
        display: none;
    }

    .header-search-mobile-btn {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
}

/* === 3. HERO SECTION === */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #fce7f3 100%);
    padding: 2rem 0 4rem;
    min-height: auto;
    position: relative;
    overflow: hidden;
    display: block;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: var(--spacing-md);
}

.hero-content h1 span {
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    animation: slideInRight 0.8s ease-out;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 420px;
    background: white;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero image overlay removed - was washing out slider images */

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-image:hover img {
    transform: none;
}

/* === HERO SLIDER === */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slider-item.active {
    opacity: 1;
    z-index: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Resmin tamamını, kenarlarını kesmeden göster */
    display: block;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.slider-prev {
    left: 1rem;
}

.slider-next {
    right: 1rem;
}

.slider-btn i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Mobile Slider Adjustments */
@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn i {
        font-size: 1rem;
    }

    .slider-prev {
        left: 0.5rem;
    }

    .slider-next {
        right: 0.5rem;
    }

    .slider-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .slider-dot.active {
        width: 20px;
    }
}


/* === 4. BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
}

/* === 5. SECTIONS === */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink));
    border-radius: 3px;
}


.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
}

/* === 6. PRODUCT GRID === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1 / 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible */
    padding: 1rem;
    /* Add breathing room */
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-badge.sale {
    background: linear-gradient(135deg, var(--accent-color), #d97706);
}

.product-badge.new {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.product-quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.product-info {
    padding: var(--spacing-md);
}

.product-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
}

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

.product-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    /* REMOVED: line-clamp - TAM AÇIKLAMA GÖSTER */
    line-height: 1.8;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.stars {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.rating-count {
    font-size: 0.875rem;
    color: var(--text-light);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.add-to-cart-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* === 7. FEATURES === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === 8. PRODUCT DETAIL PAGE === */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.main-image-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 1 / 1;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.main-image-container:hover .main-image {
    transform: scale(1.1);
}

.thumbnail-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
}

.thumbnail {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.product-detail-price .current-price {
    font-size: 2.5rem;
}

.product-detail-price .old-price {
    font-size: 1.5rem;
}

.product-detail-description {
    color: var(--text-light);
    line-height: 1.8;
    margin: var(--spacing-lg) 0;
    font-size: 1.05rem;
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    background: white;
}

.quantity-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    color: var(--text-dark);
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
}

.quantity-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.quantity-value {
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* === 9. FOOTER === */

/* -- Marketplace Trust Bar (above footer) -- */
.marketplace-trust-section {
    background: linear-gradient(135deg, #0f172a, #1a2640);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.marketplace-trust-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.25rem;
}

.marketplace-trust-title i {
    color: #818cf8;
    margin-right: 6px;
}

.marketplace-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.marketplace-logo-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.marketplace-logo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.marketplace-logo-item .mp-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.65rem;
    color: white;
    flex-shrink: 0;
}

.marketplace-logo-item .mp-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.marketplace-logo-item:hover .mp-name {
    color: white;
}

.mp-trendyol { background: #f27a1a; }
.mp-hepsiburada { background: #ff6000; }
.mp-n11 { background: #7b2d8e; font-size: 0.75rem !important; }
.mp-ciceksepeti { background: #e5007d; }
.mp-pazarama { background: #00b900; }

/* -- Footer Main -- */
footer {
    background: linear-gradient(160deg, #0c1222 0%, #141e33 40%, #182742 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #06b6d4, var(--primary-color));
}

footer::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(14,116,144,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-main {
    padding: 3.5rem 0 0;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.footer-brand-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.footer-brand-logo span {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-col h3 {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #e2e8f0;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #0e7490);
    border-radius: 2px;
}

.footer-col p {
    color: #8896ab;
    line-height: 1.75;
    font-size: 0.86rem;
    margin-bottom: var(--spacing-sm);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    color: #8896ab;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    position: relative;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #06b6d4;
    transition: width 0.3s ease;
}

.footer-col ul li a:hover {
    color: #e2e8f0;
    transform: translateX(4px);
}

.footer-col ul li a:hover::before {
    width: 100%;
}

.footer-col ul li i {
    color: #4a6178;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    transition: color 0.25s;
}

.footer-col ul li a:hover i,
.footer-col ul li:hover > i {
    color: #06b6d4;
}

.footer-contact-item {
    color: #8896ab;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8896ab;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link[title="Instagram"]:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(131, 58, 180, 0.3);
}

.social-link[title="Facebook"]:hover {
    background: #1877f2;
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-link[title="YouTube"]:hover {
    background: #ff0000;
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-link[title="WhatsApp"]:hover {
    background: #25d366;
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    margin: 0;
    border: none;
}

.footer-bottom {
    padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom-left {
    color: #506378;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.footer-bottom-left a {
    color: #64788e;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-left a:hover {
    color: #94a3b8;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-payment-icon {
    color: #4a6178;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.footer-payment-icon:hover {
    color: #8896ab;
}

.footer-iyzico {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #4a6178;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.footer-iyzico:hover {
    color: #8896ab;
}

.footer-iyzico i {
    font-size: 1.1rem;
}

/* === 10. UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--spacing-lg);
}

/* === GLOBAL FORM STYLES === */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--secondary-color);
}

.toast.error {
    border-left: 4px solid #ef4444;
}

/* === 11. RESPONSIVE DESIGN === */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .marketplace-logos {
        gap: 0.5rem;
    }

    .marketplace-logo-item {
        padding: 0.5rem 1rem;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }

    nav.active {
        max-height: 400px;
    }

    .nav-menu {
        flex-direction: column;
        padding: var(--spacing-md);
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .footer-col ul li a::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .footer-brand-logo {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }

    .footer-bottom-right {
        justify-content: center;
        flex-wrap: wrap;
    }

    .marketplace-logos {
        gap: 0.5rem;
    }

    .marketplace-logo-item {
        padding: 0.5rem 0.75rem;
    }

    .marketplace-logo-item .mp-icon {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }

    .marketplace-logo-item .mp-name {
        font-size: 0.75rem;
    }

    .hero-actions .btn,
    form .btn {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-2xl: 2.5rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Scroll Animations */
.scroll-animate {
    /* opacity: 0; Disabled for stability */
    /* transform: translateY(30px); */
    transition: all 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect */
.parallax {
    transition: transform 0.5s ease-out;
}

/* === FINAL FIXES FOR HEADER LAYERING === */
header {
    z-index: 9999 !important;
}

@media (max-width: 768px) {
    nav {
        z-index: 10000 !important;
    }

    .menu-toggle {
        z-index: 10001 !important;
    }
}

/* 🛡️ TRUST BADGES (FOOTER) */
.trust-badges {
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    margin: 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.badge-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: #8896ab;
    white-space: nowrap;
    padding: 1rem 1.5rem;
    border-right: 1px solid rgba(255,255,255,0.04);
    transition: all 0.25s;
}

.badge-item:last-child {
    border-right: none;
}

.badge-item:hover {
    color: #e2e8f0;
    background: rgba(255,255,255,0.02);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-icons .badge-item {
    border-right: 1px solid rgba(255,255,255,0.04);
    padding: 1rem 1.25rem;
}

.badge-item i {
    font-size: 1rem;
    color: #06b6d4;
}

@media (max-width: 768px) {
    .trust-badges {
        flex-direction: column;
        gap: 0;
    }

    .badge-group {
        gap: 0;
        flex-wrap: wrap;
    }

    .badge-item {
        flex: 1 1 50%;
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }

    .payment-icons {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        justify-content: center;
        width: 100%;
    }

    .payment-icons .badge-item {
        border-right: none;
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding-top: 2rem;
    }

    .footer-col p {
        font-size: 0.82rem;
    }

    .footer-col ul li a {
        font-size: 0.82rem;
    }

    .social-link {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .footer-bottom {
        gap: 0.5rem;
        padding-top: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
        font-size: 0.75rem;
    }

    .footer-bottom-right {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-iyzico {
        font-size: 0.72rem;
    }

    .badge-item {
        font-size: 0.7rem;
        padding: 0.6rem 0.75rem;
    }

    .badge-item i {
        font-size: 0.85rem;
    }
}

/* 📢 ANNOUNCEMENT BAR */
.announcement-bar {
    background-color: #1e3a8a;
    /* Premium Koyu Mavi */
    color: #ffffff;
    overflow: hidden;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
    z-index: 990;
    /* Mobil menünün (10000+) altında kalsın */
}

.announcement-track {
    display: flex;
    width: fit-content;
    animation: announcement-scroll 30s linear infinite;
}

.announcement-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 60px;
    white-space: nowrap;
}

.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

@keyframes announcement-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .announcement-track {
        animation-duration: 20s;
    }

    .announcement-text {
        font-size: 0.85rem;
    }
}