/* Modern ve mobil uyumlu stil dosyası */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dolar Kuru Banner */
.usd-rate-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    border-bottom: 3px solid #c0392b;
    position: sticky;
    top: 0;
    z-index: 999;
    animation: pulse-banner 3s ease-in-out infinite;
}

@keyframes pulse-banner {
    0%, 100% { 
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    }
    50% { 
        background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }
}

.rate-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center;
}

.rate-icon {
    font-size: 2rem;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.rate-text {
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.rate-value {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 5px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: glow-rate 2s ease-in-out infinite alternate;
}

@keyframes glow-rate {
    from { 
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        background: rgba(255,255,255,0.2);
    }
    to { 
        box-shadow: 0 4px 20px rgba(255,255,255,0.3);
        background: rgba(255,255,255,0.3);
    }
}

.rate-note {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    font-style: italic;
}

/* Kompakt Header */
.compact-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.categories-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Kontroller Bölümü */
.controls-section {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.controls-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.view-controls,
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.view-btn {
    background: white;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.3s ease;
}

.view-btn.active,
.view-btn:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.sort-select {
    background: white;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-bottom: 50px;
}

.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.product-image {
    height: 180px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.memory-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    z-index: 2;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
    padding: 0;
}

.product-image img:hover {
    transform: scale(1.1);
}

.product-image .no-image {
    color: rgba(255,255,255,0.7);
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: transparent;
}

.product-info {
    padding: 15px;
}

.product-header {
    background: transparent;
    margin: 0 0 12px 0;
    padding: 0;
    border-radius: 0;
    color: #2c3e50;
    position: relative;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.2;
}

.product-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.usd-price {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.3);
}

.tl-price {
    font-size: 1rem;
    font-weight: 700;
    color: #e74c3c;
}

/* Ürün Özellikleri */
.product-specs {
    margin-bottom: 15px;
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.spec-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: rgba(255,255,255,0.3);
    border-radius: 5px;
    padding: 6px 10px;
    margin: 0 -10px;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-icon {
    width: 20px;
    font-size: 0.9rem;
    margin-right: 8px;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    font-size: 0.75rem;
}

.spec-value {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.75rem;
}

.spec-value.spec-var {
    color: #28a745;
}

.spec-value.spec-yok {
    color: #dc3545;
}

.spec-value.spec-sorunuz {
    color: #ffc107;
}

/* Renk gösterimi */
.colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.8);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.color-item:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.color-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.color-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Liste Görünümü */
.products-grid.list-view {
    display: block;
    gap: 0;
}

.products-grid.list-view .product-card {
    display: flex;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    height: 120px;
}

.products-grid.list-view .product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.products-grid.list-view .memory-badge {
    top: 5px;
    right: 5px;
    padding: 4px 8px;
    font-size: 0.7rem;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    padding: 15px;
}

.products-grid.list-view .product-header {
    flex: 1;
    margin: 0;
    padding: 0;
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.products-grid.list-view .product-title {
    color: #2c3e50;
    text-shadow: none;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.products-grid.list-view .product-price {
    margin-bottom: 10px;
}

.products-grid.list-view .usd-price {
    background: #e3f2fd;
    color: #1976d2;
    backdrop-filter: none;
}

.products-grid.list-view .tl-price {
    color: #e74c3c;
    text-shadow: none;
}

.products-grid.list-view .product-specs {
    display: none;
}

.products-grid.list-view .product-buttons {
    width: 120px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    gap: 5px;
}

.products-grid.list-view .btn {
    padding: 6px 12px;
    font-size: 11px;
    min-width: auto;
    flex: none;
    width: 100%;
}

.products-grid.list-view .btn-specs {
    display: none;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-specs {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-specs:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* Taksit Butonu */
.btn-installment {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    border: none;
    font-weight: 600;
}

.btn-installment:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

/* Taksit Modal */
.installment-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.installment-modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.installment-cash {
    background: #f0fdf4;
    border-left: 4px solid #27ae60;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.installment-option {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.installment-option:hover {
    border-color: #f39c12;
    background: #fffbf0;
}

.installment-info {
    background: #fff8e1;
    border-left: 4px solid #f39c12;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    margin: 15px 0;
    font-family: 'Poppins', sans-serif;
}

.installment-close-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.3s;
}

.installment-close-btn:hover {
    background: #5a6268;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Dolar Kuru Banner Mobil */
    .usd-rate-banner {
        padding: 12px 0;
        position: sticky;
    }
    
    .rate-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .rate-icon {
        font-size: 1.5rem;
    }
    
    .rate-text {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .rate-value {
        font-size: 1.1rem;
        padding: 4px 10px;
    }
    
    .rate-note {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo-section h1 {
        font-size: 1.3rem;
    }
    
    .categories-section {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .category-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .controls-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .view-controls, .sort-controls {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-header {
        margin: -15px -15px 15px -15px;
        padding: 15px;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        min-width: auto;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .spec-item {
        padding: 6px 0;
    }
    
    .spec-label {
        min-width: 60px;
        font-size: 0.8rem;
    }
    
    .spec-value {
        font-size: 0.8rem;
    }
    
    /* Liste görünümü mobilde */
    .products-grid.list-view .product-card {
        height: auto;
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 150px;
    }
    
    .products-grid.list-view .product-info {
        flex-direction: column;
        padding: 15px;
    }
    
    .products-grid.list-view .product-buttons {
        width: 100%;
        margin-top: 10px;
    }
    
    .products-grid.list-view .btn-specs {
        display: block;
    }
    
    /* Mobilde renk gösterimi */
    .colors-container {
        gap: 6px;
    }
    
    .color-item {
        padding: 3px 6px;
        border-radius: 10px;
    }
    
    .color-circle {
        width: 14px;
        height: 14px;
    }
    
    .color-name {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .compact-header {
        padding: 10px 0;
    }
    
    .logo-section h1 {
        font-size: 1.1rem;
    }
    
    .category-btn {
        font-size: 11px;
        padding: 5px 10px;
        margin: 2px;
    }
    
    .controls-section {
        padding: 10px 0;
    }
    
    .view-btn, .sort-select {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .products-grid {
        gap: 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-header {
        margin: -12px -12px 12px -12px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .usd-price {
        font-size: 0.8rem;
        padding: 3px 8px;
    }
    
    .tl-price {
        font-size: 1.1rem;
    }
    
    .spec-item {
        padding: 4px 0;
    }
    
    .spec-icon {
        width: 20px;
        font-size: 0.9rem;
        margin-right: 8px;
    }
    
    .spec-label {
        min-width: 50px;
        font-size: 0.75rem;
    }
    
    .spec-value {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .memory-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
    }
    
    /* Çok küçük ekranlarda renk gösterimi */
    .colors-container {
        gap: 4px;
    }
    
    .color-item {
        padding: 2px 4px;
        border-radius: 8px;
    }
    
    .color-circle {
        width: 12px;
        height: 12px;
    }
    
    .color-name {
        font-size: 0.65rem;
    }
}

/* Admin Login Modal */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.05);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 50px;
    color: #6c757d;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #495057;
}
