/* GYM Fabrica Public Site - Main CSS File */

:root {
    --primary-color: #3B52F1;
    --secondary-color: #6B3CEF;
    --accent-color: #C4207B;
    --dark-color: #0F172A;
    --light-color: #F8FAFC;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    --navy-blue: #1E293B;
    --light-navy: #334155;
    --dark-navy: #0F172A;
    --pink-accent: #C4207B;
    --pink-dark: #B91C72;
    --purple-accent: #7C3AED;
    --white: #ffffff;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --gradient-primary: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    --gradient-secondary: linear-gradient(135deg, #C4207B 0%, #B91C72 100%);
    --gradient-accent: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.2;
}

p, span, div, a {
    font-family: 'Inter', sans-serif;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--accent-color);
    color: white;
}

::-moz-selection {
    background: var(--accent-color);
    color: white;
}

/* Top Header */
.top-header {
    background: linear-gradient(135deg, #050816 0%, #0d1128 50%, #1a1432 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.9rem 0;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .top-header {
        padding: 0.3rem 0 !important;
        font-size: 0.6rem !important;
    }
    
    .top-header .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .top-info {
        flex-direction: row !important;
        gap: 0.5rem !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
    }
    
    .top-info-divider {
        display: none !important;
    }
    
    .top-info-item {
        font-size: 0.55rem !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .top-info-item .top-info-text {
        font-size: 0.5rem !important;
        margin-right: 0.25rem !important;
    }
    
    .top-info-item a {
        font-size: 0.55rem !important;
        white-space: nowrap !important;
    }
    
    .top-header .col-md-8 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
    }
    
    .top-header .col-md-4 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        text-align: left !important;
        margin-top: 0.25rem;
    }
    
    .social-header {
        margin-top: 0 !important;
        justify-content: flex-start !important;
    }
    
    .social-link {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.6rem !important;
        padding: 0 !important;
    }
}

.top-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.top-info {
    gap: 2rem;
}

.top-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-info-text {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.top-header a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.top-header a:hover {
    color: #3B52F1;
    transform: translateX(3px);
}

.top-info-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.social-header {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    background: #3B52F1;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 82, 241, 0.5);
}

/* Main Header */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #3B52F1 25%, 
        #C4207B 50%, 
        #6B3CEF 75%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-header.scrolled::after {
    opacity: 0.6;
}

.navbar {
    padding: 1rem 0;
}

/* Navbar Toggler Wrapper (for mobile cart badge) */
.navbar-toggler-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Mobil Sepet Wrapper */
.mobile-cart-wrapper {
    position: relative;
    display: inline-block;
}

/* Mobil Sepet Butonu - Toggle yanında */
.btn-mobile-cart {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(59, 82, 241, 0.4);
    transition: all 0.3s ease;
    z-index: 1051;
}

.btn-mobile-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 82, 241, 0.5);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.btn-mobile-cart:active {
    transform: scale(0.95);
}

/* Mobile Cart Badge - Wrapper içinde, sepet butonunun üstünde */
.mobile-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
    z-index: 1060;
    animation: mobileBadgePulse 2s ease-in-out infinite;
    border: 2px solid white;
    pointer-events: none;
}

/* Desktop'ta mobil sepet butonu ve badge gizli */
@media (min-width: 992px) {
    .btn-mobile-cart {
        display: none !important;
    }
    
    .mobile-cart-badge {
        display: none !important;
    }
}

/* Hafif pulse animasyonu */
@keyframes mobileBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

/* Navbar Toggler */
.navbar-toggler {
    border: none !important;
    padding: 0;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    position: relative;
    z-index: 1051;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(148, 163, 184, 0.22) 45%, rgba(59, 82, 241, 0.18) 100%);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 14px rgba(59, 82, 241, 0.18);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.navbar-toggler::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 82, 241, 0.35), rgba(196, 32, 123, 0.35));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.navbar-toggler::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.35) 28%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(59, 82, 241, 0.2) 0%, transparent 55%);
    opacity: 0.9;
    z-index: 0;
}

.navbar-toggler:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 22px 54px rgba(59, 82, 241, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 16px rgba(59, 82, 241, 0.22);
}

.navbar-toggler:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 82, 241, 0.38);
}

.navbar-toggler .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.navbar-toggler span:not(.sr-only) {
    position: relative;
    display: block;
    width: 26px;
    height: 3px;
    background: rgba(15, 23, 42, 0.92);
    margin: 4px 0;
    border-radius: 12px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, width 0.2s ease, background 0.2s ease;
    transform-origin: center;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
    will-change: transform, opacity;
}

.navbar-toggler span:nth-child(2) {
    width: 20px;
}

.navbar-toggler span:nth-child(3) {
    width: 18px;
}

.navbar-toggler:hover span:not(.sr-only) {
    background: rgba(15, 23, 42, 0.98);
}

.navbar-toggler[aria-expanded="true"] {
    transform: scale(0.98);
    box-shadow: 0 16px 40px rgba(196, 32, 123, 0.35);
}

.navbar-toggler[aria-expanded="true"]::before {
    opacity: 0.95;
}

.navbar-toggler[aria-expanded="true"]::after {
    opacity: 0.35;
}

.navbar-toggler[aria-expanded="true"] span:not(.sr-only) {
    background: #ffffff;
    width: 26px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar-brand {
    font-size: 1.55rem;
    font-weight: 800;
    font-family: 'Roboto', sans-serif;
    color: var(--navy-blue) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(59, 82, 241, 0.4);
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-icon::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 4s ease-in-out infinite;
    border-radius: 16px;
}

.brand-icon::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    border-radius: 12px;
    z-index: -1;
}

.gymnastics-icon {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
}

/* Cimnastik Halkaları ve Figür Animasyonları */
.gymnastics-icon .top-bar {
    opacity: 0.95;
}

.gymnastics-icon .rope {
    opacity: 0.9;
    transform-origin: top center;
    animation: ropeSway 2.5s ease-in-out infinite;
}

.gymnastics-icon .rope-1 {
    animation-delay: 0s;
}

.gymnastics-icon .rope-2 {
    animation-delay: 0.4s;
}

.gymnastics-icon .ring {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) drop-shadow(0 2px 6px rgba(255, 255, 255, 0.5));
    transform-origin: center;
    animation: ringSway 2.5s ease-in-out infinite;
    stroke-linecap: round;
}

.gymnastics-icon .ring-1 {
    transform-origin: 12px 30px;
    animation-delay: 0s;
}

.gymnastics-icon .ring-2 {
    transform-origin: 48px 30px;
    animation-delay: 0.4s;
}

.gymnastics-icon .gymnast-clear {
    transform-origin: 30px 50px;
    animation: gymnastSway 2.5s ease-in-out infinite;
}

.gymnastics-icon .head-clear {
    animation: headNod 2.5s ease-in-out infinite;
    transform-origin: center;
}

.gymnastics-icon .arm-left-clear {
    transform-origin: 30px 50px;
    animation: armLeftSwing 2.5s ease-in-out infinite;
}

.gymnastics-icon .arm-right-clear {
    transform-origin: 30px 50px;
    animation: armRightSwing 2.5s ease-in-out infinite;
}

.gymnastics-icon .hand-clear {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    transform-origin: center;
    animation: handGrip 2.5s ease-in-out infinite;
}

.gymnastics-icon .hand-left-clear {
    transform-origin: 10px 42px;
    animation-delay: 0s;
}

.gymnastics-icon .hand-right-clear {
    transform-origin: 50px 42px;
    animation-delay: 0.2s;
}

.gymnastics-icon .leg-left-clear {
    transform-origin: 30px 56px;
    animation: legSway 2.5s ease-in-out infinite;
    animation-delay: 0s;
}

.gymnastics-icon .leg-right-clear {
    transform-origin: 30px 56px;
    animation: legSway 2.5s ease-in-out infinite;
    animation-delay: 0.2s;
}

@keyframes ropeSway {
    0%, 100% { 
        transform: rotate(-5deg) translateX(0);
    }
    25% {
        transform: rotate(0deg) translateX(1px);
    }
    50% { 
        transform: rotate(5deg) translateX(0);
    }
    75% {
        transform: rotate(0deg) translateX(-1px);
    }
}

@keyframes ringSway {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-4deg);
    }
    25% {
        transform: translateY(-1px) translateX(1px) rotate(0deg);
    }
    50% { 
        transform: translateY(-3px) translateX(0) rotate(4deg);
    }
    75% {
        transform: translateY(-1px) translateX(-1px) rotate(0deg);
    }
}

@keyframes gymnastSway {
    0%, 100% { 
        transform: translateY(0) translateX(0) rotate(-2deg);
    }
    25% {
        transform: translateY(-1px) translateX(1px) rotate(0deg);
    }
    50% { 
        transform: translateY(-2px) translateX(0) rotate(2deg);
    }
    75% {
        transform: translateY(-1px) translateX(-1px) rotate(0deg);
    }
}

@keyframes headNod {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(-3deg) translateY(1px);
    }
    50% {
        transform: rotate(0deg) translateY(0);
    }
    75% {
        transform: rotate(3deg) translateY(1px);
    }
}

@keyframes armLeftSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-2deg);
    }
}

@keyframes armRightSwing {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

@keyframes handGrip {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
}

@keyframes legSway {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(3deg) translateY(-1px);
    }
    50% {
        transform: rotate(0deg) translateY(0);
    }
    75% {
        transform: rotate(-3deg) translateY(-1px);
    }
}

@keyframes shine {
    0% { transform: translateX(-150%) translateY(-150%) rotate(45deg); }
    100% { transform: translateX(150%) translateY(150%) rotate(45deg); }
}

.brand-text {
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 50%, #C4207B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(59, 82, 241, 0.5);
}

.navbar-brand:hover .gymnastics-icon .ring {
    animation-duration: 1.8s;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 4px 10px rgba(255, 255, 255, 0.8));
    stroke-width: 5.5;
}

.navbar-brand:hover .gymnastics-icon .rope {
    animation-duration: 1.8s;
    opacity: 1;
}

.navbar-brand:hover .gymnastics-icon .gymnast-clear {
    animation-duration: 1.8s;
}

.navbar-brand:hover .gymnastics-icon .head-clear {
    animation-duration: 1.8s;
}

.navbar-brand:hover .gymnastics-icon .arm-left-clear,
.navbar-brand:hover .gymnastics-icon .arm-right-clear {
    animation-duration: 1.8s;
}

.navbar-brand:hover .gymnastics-icon .hand-clear {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 1));
    animation-duration: 1.8s;
}

.navbar-brand:hover .gymnastics-icon .leg-left-clear,
.navbar-brand:hover .gymnastics-icon .leg-right-clear {
    animation-duration: 1.8s;
}

.navbar-brand:hover .brand-text {
    background: linear-gradient(135deg, #C4207B 0%, #3B52F1 50%, #6B3CEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    gap: 0.4rem;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    padding: 0.65rem 1.05rem !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    z-index: 0;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    opacity: 1;
}

.navbar-nav .nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    box-shadow: 0 4px 20px rgba(59, 82, 241, 0.4);
    font-weight: 700;
}

.navbar-nav .nav-link.active::before {
    opacity: 1;
}

.navbar-nav .nav-link span {
    position: relative;
    z-index: 1;
}

.navbar-nav .nav-item {
    margin: 0 0.2rem;
}

/* Bootstrap'in default dropdown arrow'unu gizle */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

/* Dropdown Arrow Animation */
.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-link:hover .dropdown-arrow {
    opacity: 1;
}

/* Desktop'ta dropdown hover için */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    will-change: transform, opacity;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    color: white;
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Buttons */
.btn-primary,
.btn-primary-header {
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    border: none;
    border-radius: 16px;
    padding: 0.875rem 2.25rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(59, 82, 241, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary::before,
.btn-primary-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-primary-header:hover {
    background: linear-gradient(135deg, #6B3CEF 0%, #3B52F1 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(59, 82, 241, 0.7);
    color: #fff !important;
}

.btn-primary:hover::before,
.btn-primary-header:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary:active,
.btn-primary-header:active {
    transform: translateY(-2px) scale(0.98);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--navy-blue), var(--dark-navy));
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s infinite linear;
    opacity: 0.3;
}

@keyframes float {
    0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) translateY(-50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Cards */
.stats-card,
.category-card,
.product-card,
.quote-form-card,
.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-card::before,
.category-card::before,
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3B52F1 0%, #6B3CEF 50%, #C4207B 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-card:hover,
.category-card:hover,
.product-card:hover,
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(59, 82, 241, 0.2);
}

.stats-card:hover::before,
.category-card:hover::before,
.product-card:hover::before {
    opacity: 1;
}

/* Stats Card Specific */
.stats-card {
    text-align: center;
}

.stats-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3B52F1 0%, #6B3CEF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 82, 241, 0.3);
    transition: all 0.4s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 82, 241, 0.5);
}

.stats-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3B52F1 0%, #C4207B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stats-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Category Card Specific */
.category-card {
    position: relative;
    overflow: hidden;
}

.category-image {
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.category-content {
    padding: 1.5rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.category-link:hover {
    gap: 0.75rem;
    color: var(--secondary-color);
}

/* Product Card Specific (for index.php) */
.product-card .product-image {
    height: 250px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .product-content {
    padding: 1.5rem;
}

.product-card .product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.product-card .product-sku {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.product-card .product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Bootstrap Collapse Performance Optimization */
.collapsing {
    transition: height 0.15s ease-out !important;
    -webkit-transition: height 0.15s ease-out !important;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: height;
    overflow: hidden !important;
}

.navbar-collapse.collapse:not(.show) {
    display: none;
}

.navbar-collapse.show {
    overflow: visible !important;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        margin-top: 1rem;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transform: translate3d(0, 0, 0);
        will-change: auto;
        -webkit-transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transition: opacity 0.15s ease-out;
    }
    
    .navbar-collapse.collapsing {
        position: relative;
        overflow: hidden !important;
        transition: height 0.15s ease-out !important;
    }
    
    .navbar-collapse.show {
        will-change: auto;
    }
    
    .navbar-nav {
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .navbar-nav .nav-item {
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        width: 100%;
        text-align: left;
        display: flex !important;
        align-items: center;
        transition: none;
    }
    
    .navbar-nav .nav-link span {
        flex: 1;
    }
    
    .navbar-nav .btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 576px) {
    .top-header {
        padding: 0.25rem 0 !important;
        font-size: 0.55rem !important;
    }
    
    .top-info {
        gap: 0.4rem !important;
        flex-wrap: wrap !important;
    }
    
    .top-info-item {
        font-size: 0.5rem !important;
    }
    
    .top-info-item .top-info-text {
        font-size: 0.45rem !important;
        margin-right: 0.2rem !important;
    }
    
    .top-info-item a {
        font-size: 0.5rem !important;
    }
    
    .social-link {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.55rem !important;
    }
    
    .hero-placeholder {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
        padding: 0.75rem !important;
    }
    
    .hero-placeholder i {
        font-size: 50px !important;
        opacity: 0.6 !important;
    }
    
    /* Mobil performans optimizasyonu - backdrop blur'ı azalt */
    .navbar-toggler {
        backdrop-filter: blur(8px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
    }
    
    .main-header {
        backdrop-filter: blur(8px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(8px) saturate(140%) !important;
    }
    
    /* Mobil menü için ekstra optimizasyon */
    .navbar-collapse {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
    }
    
    .navbar-collapse.collapsing {
        transition: height 0.12s ease-out !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .gymnastics-icon {
        width: 26px;
        height: 26px;
    }
    
    .brand-text {
        font-size: 1.5rem;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .hero-placeholder {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        padding: 1rem !important;
    }
    
    .hero-placeholder i {
        font-size: 60px !important;
        opacity: 0.7 !important;
    }
    
    .hero-image {
        margin-top: 2rem !important;
    }
    
    .hero-image .floating-element {
        display: none !important;
    }
    
    .hero-section .row {
        margin: 0 !important;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 1.5rem !important;
    }
    
    .stats-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
    
    .category-image,
    .product-card .product-image {
        height: 180px;
    }
}

/* ============================================
   NAVBAR CART BUTTON - MODERN DESIGN
   ============================================ */

.navbar-cart-btn {
    position: relative;
    padding: 0.425rem 1.05rem !important;
    border: 2px solid var(--primary-color) !important;
    border-radius: 21px !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: white !important;
    color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(59, 82, 241, 0.15) !important;
    animation: slideInCart 0.5s ease !important;
}

.navbar-cart-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(59, 82, 241, 0.4) !important;
}

.navbar-cart-btn:active {
    transform: translateY(0) !important;
}

.navbar-cart-btn i {
    transition: transform 0.3s ease;
}

.navbar-cart-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border-radius: 11px;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
    animation: pulse 2s ease-in-out infinite;
    border: 2px solid white;
}

@keyframes slideInCart {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* ============================================
   SELECTED PRODUCTS MODAL - GLOBAL
   ============================================ */

.selected-product-modal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.selected-product-modal-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.selected-product-modal-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.selected-product-modal-info {
    flex: 1;
}

.selected-product-modal-info h6 {
    margin-bottom: 0.25rem;
    color: #212529;
}

.selected-product-modal-info small {
    color: #6c757d;
}

.selected-product-modal-qty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(59, 82, 241, 0.15);
    box-shadow: inset 0 1px 2px rgba(59, 82, 241, 0.08);
}

.selected-product-modal-qty .modal-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(59, 82, 241, 0.1);
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selected-product-modal-qty .modal-qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 82, 241, 0.25);
}

.selected-product-modal-qty .modal-qty-input {
    width: 60px;
    height: 34px;
    border: 1px solid rgba(59, 82, 241, 0.2);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #1f2937;
}

.selected-product-modal-qty .modal-qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 82, 241, 0.2);
}

.selected-product-modal-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: #dc3545;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selected-product-modal-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Responsive navbar cart */
@media (max-width: 992px) {
    .navbar-cart-btn {
        margin: 0.5rem 0;
        width: 100%;
        justify-content: center;
    }
    
    .cart-badge {
        top: 8px;
        left: 95% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .selected-product-modal-item {
        padding: 0.65rem 0.75rem;
        gap: 0.6rem;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .selected-product-modal-item img {
        width: 48px;
        height: 48px;
    }
    
    .selected-product-modal-info h6 {
        font-size: 0.95rem;
    }
    
    .selected-product-modal-info small {
        font-size: 0.75rem;
    }
    
    .selected-product-modal-qty {
        width: auto;
        min-width: 120px;
        justify-content: center;
        padding: 0.3rem 0.5rem;
        gap: 0.35rem;
    }
    
    .selected-product-modal-qty .modal-qty-btn {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }
    
    .selected-product-modal-qty .modal-qty-input {
        width: 48px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .selected-product-modal-remove {
        width: 30px;
        height: 30px;
        margin-left: auto;
    }
}


