﻿/* LİDER SURF CASTİNG OLTA MAĞAZASI - Custom Styles */
/* Renk Paleti: Krem (#FDF8F0) ve Sarı (#D4A03A) */

/* Sayfa taşma önleme - tüm taşmaları engelle */
html {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
}

body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    width: 100%;
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Scrollbar gizle */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Sayfa geçişleri */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ürün kartı hover efekti */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(61, 53, 40, 0.1), 0 10px 10px -5px rgba(61, 53, 40, 0.04);
}

/* Sepet animasyonu */
@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.cart-bounce {
    animation: cartBounce 0.3s ease;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #F5EBD8;
    border-top: 3px solid #D4A03A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 53, 40, 0.5);
    z-index: 100;
    display: none;
}

.overlay.active {
    display: block;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFEF9;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 101;
    display: none;
    border: 1px solid #EBE0C8;
}

.modal.active {
    display: block;
}

/* Quantity input */
.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #EBE0C8;
    border-radius: 10px;
    overflow: hidden;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    background: #F5EBD8;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #3D3528;
}

.quantity-input button:hover {
    background: #D4A03A;
    color: #3D3528;
}

.quantity-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-weight: 600;
    background: #FFFEF9;
    color: #3D3528;
}

.quantity-input input:focus {
    outline: none;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

.toast.info {
    background: #D4A03A;
    color: #3D3528;
}

/* Image gallery */
.gallery-main {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: #D4A03A;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-sale {
    background: #ef4444;
    color: white;
}

.badge-new {
    background: #D4A03A;
    color: #3D3528;
}

.badge-out {
    background: #8B7355;
    color: white;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #3D3528;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #EBE0C8;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #FFFEF9;
}

.form-input:focus {
    outline: none;
    border-color: #D4A03A;
    box-shadow: 0 0 0 3px rgba(212, 160, 58, 0.15);
}

.form-input.error {
    border-color: #ef4444;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #D4A03A;
    color: #3D3528;
}

.btn-primary:hover {
    background: #B8892F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 160, 58, 0.3);
}

.btn-secondary {
    background: #F5EBD8;
    color: #3D3528;
}

.btn-secondary:hover {
    background: #EBE0C8;
}

.btn-outline {
    background: transparent;
    border: 2px solid #D4A03A;
    color: #D4A03A;
}

.btn-outline:hover {
    background: #D4A03A;
    color: #3D3528;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* Step indicator */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.step {
    display: flex;
    align-items: center;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5EBD8;
    color: #8B7355;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step.active .step-number {
    background: #D4A03A;
    color: #3D3528;
}

.step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    margin-left: 10px;
    font-weight: 500;
    color: #8B7355;
}

.step.active .step-label {
    color: #D4A03A;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #EBE0C8;
    margin: 0 16px;
}

.step.completed+.step .step-line {
    background: #10b981;
}

/* Price styles */
.price {
    font-size: 20px;
    font-weight: 700;
    color: #D4A03A;
}

.price-old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Stock indicator */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.stock-indicator.in-stock {
    color: #10b981;
}

.stock-indicator.low-stock {
    color: #D4A03A;
}

.stock-indicator.out-of-stock {
    color: #ef4444;
}

/* Tab component */
.tabs {
    display: flex;
    border-bottom: 2px solid #EBE0C8;
    margin-bottom: 24px;
}

.tab {
    padding: 14px 24px;
    font-weight: 500;
    color: #8B7355;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab:hover {
    color: #3D3528;
}

.tab.active {
    color: #D4A03A;
    border-bottom-color: #D4A03A;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Free shipping banner */
.free-shipping-banner {
    background: linear-gradient(90deg, #D4A03A, #B8892F);
    color: #3D3528;
    padding: 14px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #FFFEF9;
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #EBE0C8;
}

.mobile-menu.active {
    left: 0;
}

/* Dark mode adjustments */
.dark .form-input {
    background: #252118;
    border-color: #3D3528;
    color: #FDF8F0;
}

.dark .form-label {
    color: #F5EBD8;
}

.dark .quantity-input {
    border-color: #3D3528;
}

.dark .quantity-input button {
    background: #3D3528;
    color: #FDF8F0;
}

.dark .quantity-input button:hover {
    background: #D4A03A;
    color: #3D3528;
}

.dark .quantity-input input {
    background: #252118;
    color: #FDF8F0;
}

.dark .modal {
    background: #252118;
    color: #FDF8F0;
    border-color: #3D3528;
}

.dark .mobile-menu {
    background: #252118;
    border-color: #3D3528;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 16px;
    }

    .steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .step-line {
        display: none;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}

/* Selection color */
::selection {
    background: #D4A03A;
    color: #3D3528;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F5EBD8;
}

::-webkit-scrollbar-thumb {
    background: #D4A03A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8892F;
}