/**
 * OixStore - Ana CSS Dosyası
 */

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --secondary: #10b981;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-light: #f9fafb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Genel Form Elementleri */
input, textarea, select, button {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Body scroll lock için */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Typography - Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Header */
.site-header {
    background: var(--bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #1f2937;
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .header-top {
        padding: 5px 0;
        font-size: 12px;
    }
    
    .header-top-left span {
        display: block;
        text-align: center;
    }
    
    .header-top-right {
        display: none;
    }
}

.header-top a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.header-main {
    padding: 10px 0;
}

@media (max-width: 768px) {
    .header-main {
        padding: 8px 0;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hamburger Menu Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    z-index: 10001;
    position: relative;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-menu-toggle.active {
    color: var(--primary);
    background: var(--bg-light);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    display: block;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .mobile-menu-overlay.active {
        /* Menü açıkken overlay menünün sağında başlasın */
        left: 280px;
        width: calc(100% - 280px);
    }
    
    @media (max-width: 480px) {
        .mobile-menu-overlay.active {
            left: 260px;
            width: calc(100% - 260px);
        }
    }
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .site-logo-img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .site-logo-img {
        max-height: 30px;
    }
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.main-menu a:hover {
    color: var(--primary);
}

/* Desktop menu - normal görünüm */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .main-navigation {
        display: block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .main-menu {
        display: flex !important;
        flex-direction: row !important;
        gap: 20px;
    }
    
    .main-menu li {
        width: auto !important;
        border-bottom: none !important;
    }
    
    .main-menu a {
        padding: 0 !important;
        font-size: 15px !important;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-content {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .site-branding {
        flex: 1;
        min-width: 0;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 10001;
        transition: left 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding-top: 70px;
        padding-bottom: 20px;
        pointer-events: auto;
    }
    
    .main-navigation.active {
        left: 0;
        pointer-events: auto;
    }
    
    .main-navigation,
    .main-navigation * {
        pointer-events: auto !important;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .main-navigation.active,
    .main-navigation.active * {
        pointer-events: auto !important;
    }
    
    .main-navigation a {
        -webkit-user-select: none;
        user-select: none;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        display: flex !important;
    }
    
    .main-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    
    .main-menu a {
        display: block;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text);
        transition: all 0.3s;
        position: relative;
        z-index: 10002;
        pointer-events: auto !important;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: rgba(249, 115, 22, 0.2);
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
    }
    
    .main-menu a:hover,
    .main-menu a:active,
    .main-menu a:focus {
        background: var(--bg-light);
        color: var(--primary);
        padding-left: 25px;
        outline: none;
    }
    
    .main-menu li {
        position: relative;
        z-index: 10002;
        pointer-events: auto !important;
    }
    
    .main-menu li * {
        pointer-events: auto !important;
    }
    
    /* Menü linklerinin tıklanabilirliğini garanti et */
    .main-navigation.active .main-menu a {
        pointer-events: auto !important;
        cursor: pointer !important;
    }
    
    .header-actions {
        order: 2;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .upload-design-btn {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .wholesale-order-btn {
        font-size: 11px;
        padding: 6px 10px;
        white-space: nowrap;
    }
    
    .cart-icon {
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 4px;
    }
    
    .upload-design-btn {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .wholesale-order-btn {
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .cart-icon {
        font-size: 11px;
    }
    
    .main-navigation {
        width: 260px;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

.cart-icon {
    position: relative;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.upload-design-btn {
    position: relative;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.upload-design-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.wholesale-order-btn {
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.wholesale-order-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cart-count {
    background: var(--danger);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding: 20px 0;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 350px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1200px) {
    .slider-container {
        max-width: calc(100% - 40px);
        margin: 0 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .slider-container {
        height: 220px;
        max-width: calc(100% - 24px);
        margin: 0 auto;
        border-radius: 10px;
        position: relative;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .slider-wrapper {
        height: 100%;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    .slide-content .container {
        padding: 0;
        max-width: 100%;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 18px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .category-info {
        padding: 15px;
    }
    
    .category-info h3 {
        font-size: 14px;
    }
    
    .category-placeholder {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        padding: 8px 0;
        margin-bottom: 12px;
    }
    
    .slider-container {
        height: 180px;
        max-width: calc(100% - 16px);
        margin: 0 auto;
        border-radius: 8px;
        position: relative;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    }
    
    .slider-wrapper {
        height: 100%;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
    
    .slide-content {
        padding: 0 12px;
    }
    
    .slide-content .container {
        padding: 0;
        max-width: 100%;
    }
    
    .slider-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .slider-controls {
        padding: 0 6px;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .categories-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 5px;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
    
    .category-card {
        border-radius: 6px;
        min-width: 120px;
        max-width: 120px;
        aspect-ratio: 1;
        flex-shrink: 0;
    }
    
    .category-placeholder {
        font-size: 14px;
    }
    
    .category-info {
        padding: 10px;
    }
    
    .category-info h3 {
        font-size: 12px;
        margin: 0;
        line-height: 1.3;
    }
    
    .container .categories-grid {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Daha küçük ekranlar için ek optimizasyonlar */
    .header-top {
        font-size: 11px;
        padding: 4px 0;
    }
    
    .header-main {
        padding: 6px 0;
    }
    
    .main-content {
        padding-bottom: 20px;
    }
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-quality;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

@media (max-width: 768px) {
    .slide-image {
        height: 100%;
    }
    
    .slide-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}


.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-title {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.slide-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 22px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .slide-content .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 18px;
        margin-bottom: 6px;
        line-height: 1.3;
        font-weight: 600;
    }
    
    .slide-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .slide-content .btn {
        font-size: 12px;
        padding: 7px 14px;
    }
    
    .slide-content {
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
    pointer-events: none;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: all;
    color: var(--text);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .slider-controls {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .slider-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    
    .slider-controls {
        padding: 0 5px;
    }
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .slider-dots {
        bottom: 12px;
        gap: 7px;
    }
    
    .dot {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 480px) {
    .slider-dots {
        bottom: 8px;
        gap: 6px;
    }
    
    .dot {
        width: 7px;
        height: 7px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* Sepete Ekleme Animasyonu */
.add-to-cart-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.add-to-cart-btn .btn-text,
.add-to-cart-btn .btn-loading,
.add-to-cart-btn .btn-success {
    display: inline-block;
    transition: opacity 0.3s ease;
    line-height: 1.4;
}

.add-to-cart-btn .btn-text {
    display: inline-block !important;
}

.add-to-cart-btn.loading .btn-text {
    display: none;
}

.add-to-cart-btn.loading .btn-loading {
    display: inline;
    animation: pulse 1.5s ease-in-out infinite;
}

.add-to-cart-btn.success .btn-loading {
    display: none;
}

.add-to-cart-btn.success .btn-success {
    display: inline;
    animation: bounceIn 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.bg-light {
    background: var(--bg-light);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
    max-height: 280px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

/* Ürün kartı için mobilde alt alta */
@media (max-width: 768px) {
    .product-card .product-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .product-card .product-actions .add-to-cart-form {
        order: 1;
        width: 100%;
    }
    
    .product-card .product-actions .favorite-btn {
        order: 2;
        width: 100%;
    }
}

/* Ürün detay sayfası için özel düzen */
.product-detail .product-actions {
    display: flex;
    gap: 15px;
    align-items: stretch;
    flex-direction: row;
}

.product-detail .product-actions .add-to-cart-btn {
    flex: 1;
    min-height: 60px;
}

.product-detail .product-actions .favorite-btn {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 24px;
}

.favorite-btn {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 20px;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.favorite-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.favorite-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.favorite-btn.active:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #dc2626;
}

.favorite-btn.active .favorite-icon {
    animation: heartBeat 0.5s ease-in-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.15); }
}

.favorite-btn:active {
    transform: translateY(0) scale(0.98);
}

.favorite-icon {
    display: block;
    line-height: 1;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Flex shrink için */
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 2.8em; /* İki satır için minimum yükseklik - butonları hizalamak için */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: var(--text);
    text-decoration: none;
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 10px 0;
    line-height: 1.4;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin: 0 0 15px 0;
    flex-shrink: 0;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto; /* Butonları alta yapıştır - tüm kartlarda aynı hizada */
    flex-shrink: 0;
}


.price-old {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 10px;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--primary);
}

.add-to-cart-form {
    flex: 1;
    margin: 0;
}

.add-to-cart-form .btn {
    width: 100%;
    height: 48px;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

@media (min-width: 769px) {
    .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.category-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 24px;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}

.category-info h3 {
    color: #fff;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.products-sidebar {
    background: var(--bg-light);
    padding: 0;
    border-radius: 8px;
    height: fit-content;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
    padding: 20px;
    background: var(--primary);
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.category-list-wrapper {
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    background: transparent;
    border: 1px solid transparent;
}

.category-list > li > a:hover {
    background: rgba(249, 115, 22, 0.05);
    border-color: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    transform: translateX(3px);
}

.category-list > li > a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.category-list > li > a.active .category-arrow {
    color: #fff;
    transform: rotate(180deg);
}

.category-name {
    flex: 1;
}

.category-arrow {
    font-size: 10px;
    color: var(--text-light);
    transition: transform 0.3s;
    margin-left: 10px;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    user-select: none;
    -webkit-user-select: none;
}

.category-arrow:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.category-list > li > a.active .category-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.parent-category > a.has-children {
    font-weight: 600;
}

.subcategory-list {
    list-style: none;
    margin: 8px 0 8px 20px;
    padding: 0;
    border-left: 2px solid #e5e7eb;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
}

.subcategory-list.expanded {
    max-height: 1000px;
    opacity: 1;
    margin-top: 8px;
    margin-bottom: 8px;
}

.subcategory-list li {
    margin-bottom: 4px;
}

.subcategory-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 400;
    position: relative;
}

.subcategory-list a::before {
    content: '•';
    position: absolute;
    left: -10px;
    color: var(--text-light);
    font-size: 18px;
}

.subcategory-list a:hover {
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary);
    padding-left: 18px;
}

.subcategory-list a.active {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    font-weight: 500;
    padding-left: 18px;
}

.subcategory-list a.active::before {
    color: var(--primary);
}

/* Scrollbar styling */
.category-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.category-list-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.category-list-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.category-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.products-content {
    min-height: 400px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.product-images {
    position: relative;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.product-main-image-container {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    max-height: 350px;
    padding: 15px;
    width: 100%;
}

.product-main-image-container img {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    object-fit: contain;
    margin: 0 auto;
}

.product-main-image-container img:hover {
    transform: scale(1.02);
}

.product-gallery-thumbnails {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-gallery-thumbnails > div {
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    background: var(--bg-light);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.gallery-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.product-price {
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
}

.quantity-selector input {
    width: 100px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.product-stock {
    margin-bottom: 20px;
}

.stock-available {
    color: var(--secondary);
    font-weight: 600;
}

.stock-unavailable {
    color: var(--danger);
    font-weight: 600;
}

/* Beden ve Renk Seçimi */
.size-option input:checked + .size-button,
.color-option input:checked + .color-button,
.size-button.selected,
.color-button.selected {
    border-color: #f97316 !important;
    border-width: 3px !important;
    background: #f97316 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2), 0 4px 12px rgba(249, 115, 22, 0.3) !important;
    transform: scale(1.05) !important;
}

.size-option input:disabled + .size-button,
.color-option input:disabled + .color-button {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.size-option:not(:has(input:disabled)) .size-button:hover,
.color-option:not(:has(input:disabled)) .color-button:hover {
    border-color: #f97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    background: #fff7ed;
}

.size-options,
.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-button,
.color-button {
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.size-button::after,
.color-button::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #f97316;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.size-option input:checked + .size-button::after,
.color-option input:checked + .color-button::after,
.size-button.selected::after,
.color-button.selected::after {
    opacity: 1;
}

.size-button.selected small,
.color-button.selected small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Cart */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 100px 50px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cart-item-image img {
    width: 100%;
    border-radius: 4px;
}

.cart-summary {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cart-summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-remove {
    background: var(--danger);
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Checkout */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 30px;
}

.checkout-form {
    background: var(--bg);
    padding: 30px;
    border-radius: 8px;
}

.checkout-form .form-group {
    margin-bottom: 20px;
}

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.checkout-form textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.checkout-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-totals {
    border-top: 2px solid var(--border);
    padding-top: 20px;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.checkout-row.total {
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

.payment-info-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.payment-info-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
}

.bank-info {
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.bank-info p {
    margin: 10px 0;
    font-size: 15px;
}

.bank-info code {
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', monospace;
    display: inline-block;
    margin-top: 5px;
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
}

/* Order Success */
.order-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.order-number {
    font-size: 20px;
    margin: 20px 0;
}

.order-details {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.order-table th,
.order-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.order-table th {
    background: var(--bg-light);
}

.total-row {
    font-weight: 700;
}

.order-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    margin-bottom: 10px;
}

.contact-map iframe {
    border-radius: 8px;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page h1 {
    font-size: 120px;
    color: var(--primary);
    margin-bottom: 20px;
}

.error-page h2 {
    margin-bottom: 20px;
}

/* Page Header */
.page-header {
    padding: 40px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main Content */
.main-content {
    min-height: 60vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #fff;
    padding: 25px 0 15px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4) !important;
}

.footer-widget h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-widget a {
    color: #fff;
    text-decoration: none;
}

.footer-social {
    margin-top: 12px !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Footer Logolar */
.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    opacity: 0.9;
    filter: brightness(1);
    transition: all 0.3s ease;
    object-fit: contain;
}

.footer-logo:hover {
    opacity: 1;
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.footer-logo-placeholder {
    height: 40px;
    width: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    opacity: 0.4;
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .site-footer {
        padding: 20px 0 12px;
        margin-top: 40px;
    }
    
    .footer-content {
        gap: 25px;
        margin-bottom: 15px;
    }
    
    .footer-widget h4 {
        margin-bottom: 8px;
        font-size: 15px;
    }
    
    .footer-widget ul li {
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .footer-social {
        margin-top: 10px !important;
    }
    
    .footer-bottom {
        padding-top: 12px;
    }
    
    .footer-logos {
        gap: 20px;
        margin: 12px 0;
    }
    
    .footer-logo {
        height: 35px;
        max-width: 100px;
    }
    
    .footer-logo-placeholder {
        height: 35px;
        width: 100px;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 18px 0 10px;
        margin-top: 30px;
    }
    
    .footer-content {
        gap: 20px;
        margin-bottom: 12px;
    }
    
    .footer-widget h4 {
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    .footer-widget ul li {
        margin-bottom: 4px;
        font-size: 12px;
    }
    
    .footer-social {
        margin-top: 8px !important;
    }
    
    .instagram-btn {
        padding: 7px 14px !important;
        font-size: 12px !important;
        gap: 5px !important;
    }
    
    .instagram-btn span:first-child {
        font-size: 14px !important;
    }
    
    .footer-bottom {
        padding-top: 10px;
        font-size: 13px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .footer-logos {
        gap: 15px;
        margin: 10px 0;
    }
    
    .footer-logo {
        height: 30px;
        max-width: 80px;
    }
    
    .footer-logo-placeholder {
        height: 30px;
        width: 80px;
    }
}

/* Flash Messages */
.flash-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.flash-success {
    background: #d1fae5;
    color: #065f46;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Account Page */
.account-page {
    margin-top: 30px;
    margin-bottom: 40px;
}

.account-page h1 {
    margin-bottom: 30px;
    font-size: 32px;
    color: var(--text);
}

.account-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.account-section {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.account-section h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.account-table th,
.account-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.account-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text);
}

.account-table tbody tr:hover {
    background: var(--bg-light);
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-processing {
    background: #fed7aa;
    color: #ea580c;
}

.status-badge.status-completed,
.status-badge.status-complete {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.status-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.account-form {
    margin-top: 20px;
}

.account-form .form-group {
    margin-bottom: 20px;
}

.account-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text);
}

.account-form input,
.account-form textarea,
.account-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.2s;
}

.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.account-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.order-items-table-wrapper {
    overflow-x: auto;
    margin-top: 15px;
}

.order-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.text-muted {
    color: var(--text-light);
    font-style: italic;
}

/* Auth Pages (Login/Register) */
.auth-page {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    color: var(--text);
}

.auth-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form {
    margin-top: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.15rem;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .section {
        padding: 30px 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
    }
    
    .auth-box h1 {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        max-height: 200px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        margin-top: auto;
    }
    
    .product-actions .favorite-btn {
        width: 100%;
        height: 42px;
        min-width: 100%;
        font-size: 18px;
        flex-shrink: 0;
        order: 2;
        min-height: 42px;
    }
    
    .product-actions .add-to-cart-form {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        order: 1;
    }
    
    .product-actions .add-to-cart-form {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
    
    .product-actions .add-to-cart-form .btn {
        height: 42px;
        min-height: 42px;
        font-size: 11px;
        width: 100%;
        padding: 10px 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-weight: 600;
        border-radius: 8px;
        white-space: nowrap;
        overflow: visible;
        position: relative;
    }
    
    .product-actions .add-to-cart-btn {
        overflow: visible !important;
    }
    
    .product-actions .add-to-cart-btn .btn-text,
    .product-actions .add-to-cart-btn .btn-loading,
    .product-actions .add-to-cart-btn .btn-success {
        font-size: 11px;
        white-space: nowrap;
        overflow: visible;
        display: inline-block;
        line-height: 1.2;
        max-width: 100%;
    }
    
    /* Dokunma alanlarını optimize et */
    .product-actions .add-to-cart-btn,
    .product-actions .favorite-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .product-actions .add-to-cart-btn {
        position: relative;
        overflow: visible;
    }
    
    .product-actions .add-to-cart-btn {
        position: relative;
        overflow: hidden;
    }
    
    .product-actions .add-to-cart-btn .btn-text,
    .product-actions .add-to-cart-btn .btn-loading,
    .product-actions .add-to-cart-btn .btn-success {
        display: inline-block;
        white-space: nowrap;
        font-size: 11px;
        line-height: 1.2;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Varsayılan durum - sadece btn-text görünür */
    .product-actions .add-to-cart-btn .btn-text {
        display: inline-block;
        opacity: 1;
        visibility: visible;
    }
    
    .product-actions .add-to-cart-btn .btn-loading,
    .product-actions .add-to-cart-btn .btn-success {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    /* Loading durumu */
    .product-actions .add-to-cart-btn.loading .btn-text {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .product-actions .add-to-cart-btn.loading .btn-loading {
        display: inline-block;
        opacity: 1;
        visibility: visible;
    }
    
    .product-actions .add-to-cart-btn.loading .btn-success {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    /* Success durumu */
    .product-actions .add-to-cart-btn.success .btn-text {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .product-actions .add-to-cart-btn.success .btn-loading {
        display: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .product-actions .add-to-cart-btn.success .btn-success {
        display: inline-block;
        opacity: 1;
        visibility: visible;
    }
    
    /* Favori butonunun içeriğini temizle */
    .product-actions .favorite-btn .favorite-icon {
        display: block;
        line-height: 1;
    }
    
    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
    
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .products-content {
        order: 1;
    }
    
    .sidebar-header {
        padding: 15px;
    }
    
    .sidebar-header h3 {
        font-size: 16px;
    }
    
    .category-list-wrapper {
        padding: 10px;
        max-height: 400px;
    }
    
    .category-list > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .subcategory-list {
        margin-left: 15px;
        padding-left: 12px;
    }
    
    .subcategory-list a {
        padding: 7px 10px;
        font-size: 13px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-item-quantity {
        align-items: flex-start;
    }
    
    .cart-item-quantity label {
        margin-bottom: 5px;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .product-detail .product-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .product-detail .favorite-btn {
        width: 100%;
        height: 50px;
        min-width: 100%;
        font-size: 20px;
        order: 2;
    }
    
    .product-detail .add-to-cart-btn {
        font-size: 15px;
        padding: 14px 20px;
        width: 100%;
        order: 1;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-detail .add-to-cart-btn .btn-text,
    .product-detail .add-to-cart-btn .btn-loading,
    .product-detail .add-to-cart-btn .btn-success {
        white-space: nowrap;
    }
    
    .product-features {
        margin-top: 20px !important;
        padding-top: 20px !important;
    }
    
    .product-feature-item {
        min-width: 100% !important;
        margin-bottom: 15px;
    }
    
    .product-feature-item:last-child {
        margin-bottom: 0;
    }
    
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 80px; /* Sticky buton için alan */
    }
    
    .checkout-form {
        padding: 20px 15px;
    }
    
    .checkout-form input,
    .checkout-form select,
    .checkout-form textarea {
        font-size: 16px; /* iOS zoom'u önlemek için */
        padding: 12px;
    }
    
    .checkout-summary {
        padding: 20px 15px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .instagram-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sticky ödeme butonu mobil için */
    .sticky-payment-button {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 12px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid var(--border);
    }
    
    .sticky-payment-button .btn {
        width: 100%;
        margin: 0;
        min-height: 48px;
    }
    
    /* Safe area için padding (iPhone X ve üzeri) */
    @supports (padding: max(0px)) {
        .sticky-payment-button {
            padding-bottom: max(12px, env(safe-area-inset-bottom));
        }
    }
    
    /* Butonlar için mobil optimizasyon */
    .btn {
        min-height: 44px; /* Minimum dokunma alanı */
        padding: 12px 20px;
        font-size: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-lg {
        min-height: 50px;
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* Sepet Sidebar */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    overflow: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.cart-sidebar-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.cart-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
}

.cart-sidebar-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.cart-sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.cart-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-sidebar-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.cart-sidebar-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-sidebar-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.cart-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-sidebar-item-info {
    flex: 1;
    min-width: 0;
    position: relative;
    padding-right: 30px;
}

.cart-sidebar-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.cart-sidebar-item-info h4 a {
    color: #111827;
    text-decoration: none;
}

.cart-sidebar-item-info h4 a:hover {
    color: var(--primary);
}

.cart-sidebar-item-price {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #6b7280;
}

.cart-sidebar-item-variants {
    margin: 6px 0;
    font-size: 12px;
    color: #6b7280;
}

.cart-sidebar-item-variants span {
    display: inline-block;
    margin-right: 8px;
}

.cart-sidebar-item-quantity {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-sidebar-item-quantity label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 4px;
}

.quantity-btn {
    background: #f9fafb;
    border: none;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.quantity-btn:hover:not(:disabled) {
    background: #e5e7eb;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.cart-sidebar-item-total {
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-align: right;
}

.cart-sidebar-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation; /* Prevent double-tap zoom on mobile */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.cart-sidebar-item-remove:hover {
    color: var(--danger);
}

.cart-sidebar-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-sidebar-empty p {
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 16px;
}

.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    margin-top: auto; /* Footer'ı alta it */
}

.cart-sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 15px;
    border-top: 2px solid #111827;
    padding-top: 15px;
}

.cart-sidebar-total span {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.cart-sidebar-total strong {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.cart-sidebar-footer .btn {
    margin-bottom: 10px;
}

.cart-sidebar-footer .btn:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        max-width: 100vw;
        right: -100%;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .cart-sidebar.active {
        right: 0;
    }
    
    /* Safe area için padding (iPhone X ve üzeri) */
    @supports (padding: max(0px)) {
        .cart-sidebar-header {
            padding-top: max(15px, env(safe-area-inset-top));
        }
        
        .cart-sidebar-footer {
            padding-bottom: max(15px, env(safe-area-inset-bottom));
        }
        
        .main-navigation {
            padding-top: max(60px, calc(60px + env(safe-area-inset-top)));
        }
    }
    
    .cart-sidebar-header {
        padding: 15px;
    }
    
    .cart-sidebar-header h2 {
        font-size: 18px;
    }
    
    .cart-sidebar-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    
    .cart-sidebar-content {
        padding: 15px;
        padding-bottom: 20px; /* Normal padding */
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-sidebar-items {
        gap: 15px;
    }
    
    .cart-sidebar-item {
        gap: 12px;
        padding-bottom: 15px;
        flex-wrap: wrap;
    }
    
    .cart-sidebar-item-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-sidebar-item-info {
        flex: 1;
        min-width: calc(100% - 82px);
        padding-right: 35px;
    }
    
    .cart-sidebar-item-info h4 {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .cart-sidebar-item-price {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .cart-sidebar-item-variants {
        font-size: 11px;
        margin: 4px 0;
    }
    
    .cart-sidebar-item-quantity {
        margin: 8px 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .cart-sidebar-item-quantity label {
        font-size: 12px;
        width: 100%;
    }
    
    .quantity-controls {
        gap: 6px;
        padding: 3px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 18px;
        min-width: 32px;
    }
    
    .quantity-value {
        min-width: 28px;
        font-size: 13px;
    }
    
    .cart-sidebar-item-total {
        margin-top: 8px;
        font-size: 15px;
        width: 100%;
        text-align: left;
        padding-top: 8px;
        border-top: 1px solid #e5e7eb;
    }
    
    .cart-sidebar-item-remove {
        top: -5px;
        right: -5px;
        width: 28px;
        height: 28px;
        font-size: 16px;
        padding: 6px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .cart-sidebar-footer {
        padding: 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
        position: relative;
        background: #ffffff;
        z-index: 10;
        margin-top: auto;
        flex-shrink: 0;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: auto !important;
        max-height: none !important;
    }
    
    .cart-sidebar-footer .btn {
        width: 100% !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: 10px !important;
    }
    
    .cart-sidebar-footer .btn:last-child {
        margin-bottom: 0 !important;
    }
    
    .cart-sidebar-total {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .cart-sidebar-total {
        padding: 12px 0;
        margin-bottom: 12px;
    }
    
    .cart-sidebar-total span {
        font-size: 15px;
    }
    
    .cart-sidebar-total strong {
        font-size: 18px;
    }
    
    .cart-sidebar-footer .btn {
        padding: 14px 20px;
        font-size: 14px;
        margin-bottom: 10px;
        min-height: 48px;
    }
    
    .cart-sidebar-empty {
        padding: 40px 20px;
    }
    
    .cart-sidebar-empty p {
        font-size: 15px;
    }
}
