/* E-ticaret Platformu - Parcagonder Style */

/* Google Fonts - Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Theme Colors */
    --primary-color: #D9001C;
    /* Main Red */
    --primary-dark: #b00016;
    --secondary-color: #121212;
    /* Black/Dark Grey */
    --text-color: #333333;
    --text-muted: #666666;
    --light-bg: #f5f5f5;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;

    /* Spacing */
    --container-width: 1200px;
}

/* Global Reset & Typography */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Global Buttons */
.btn {
    border-radius: 4px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 10px rgba(217, 0, 28, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Form Controls */
.form-control {
    border-radius: 4px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 0, 28, 0.15);
}

/* Navbar & Header */
.top-bar {
    background-color: #000;
    color: #fff;
    font-size: 0.8rem;
    padding: 8px 0;
    position: relative;
    z-index: 1040;
}

.top-bar a {
    color: #fff;
    opacity: 0.8;
}

.top-bar a:hover {
    opacity: 1;
}

/* Main Header */
.main-header {
    background: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--secondary-color);
    letter-spacing: -1px;
}

.navbar-brand span {
    color: var(--primary-color);
}

/* Search Bar */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    background: white;
    transition: border-color 0.3s;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
}

.search-input-group input {
    border: none;
    box-shadow: none;
    padding-left: 1.5rem;
}

.search-input-group .btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 0;
    font-weight: 700;
}

/* Main Navigation */
.main-nav {
    background-color: var(--primary-color);
    margin-top: 0;
}

.main-nav .nav-link {
    color: white !important;
    font-weight: 600;
    padding: 15px 20px !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    white-space: nowrap;
}

.main-nav .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Product Cards */
.product-card .card-img-top {
    height: 220px;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-actions .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-actions .btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding-top: 60px;
    font-size: 0.9rem;
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
}

footer a {
    color: #aaa;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

footer .social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

footer .social-icons a:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 0;
    /* Override default hover */
}

/* Category Icons */
.category-item {
    text-align: center;
    transition: all 0.3s;
}

.category-icon-wrapper {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.category-item:hover .category-icon-wrapper {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.category-item h6 {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Utilities */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-icons span {
        display: none;
    }

    .main-nav .nav-link {
        padding: 10px 15px !important;
    }
}

/* Mega Menu Styles */
.main-nav .nav-item {
    position: static !important;
    /* Allow mega menu to be full width of relative parent */
}

.main-nav {
    position: relative;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 3px solid var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 0;
    z-index: 1000;
}

.nav-item:hover .mega-menu {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    transition: all 0.2s;
}

.hover-bg-light .text-primary {
    transition: color 0.2s;
}

.hover-bg-light:hover .text-primary {
    color: var(--primary-dark) !important;
}

/* Professional Menu Styling */
.top-bar {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 2px solid var(--primary-color);
}

.top-bar a {
    transition: all 0.3s ease;
}

.top-bar a:hover {
    color: white !important;
    transform: translateY(-1px);
}

.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Professional Navigation */
.main-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid var(--primary-color);
}

.main-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
}

.main-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
}

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav .nav-link:hover::after {
    width: 80%;
}

/* Professional Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-height: 200px;
}

.category-item-container:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu a {
    transition: all 0.3s ease;
    border: 1px solid transparent !important;
}

.mega-menu a:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 0, 28, 0.1);
}

/* Professional Search Bar */
.search-input-group {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(217, 0, 28, 0.2);
}

.search-input-group .form-control {
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    background: white;
}

.search-input-group .form-control:focus {
    box-shadow: none;
    border: none;
}

.search-input-group .btn {
    border-radius: 0;
    padding: 0.5rem 1.25rem;
    /* Reduced padding */
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    background: var(--primary-color);
    color: white;
}

.search-input-group .btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

/* Professional User Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

/* Professional Mobile Menu */
.offcanvas-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.offcanvas-body .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--primary-color);
    transform: translateX(10px);
}

/* Professional Hover Effects */
.hover-text-white:hover {
    color: white !important;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Professional Responsive Adjustments */
@media (max-width: 991.98px) {
    .main-nav {
        display: none !important;
    }

    .search-input-group {
        border-radius: 8px;
    }

    .search-input-group .btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .top-bar .contact-info {
        display: flex !important;
        font-size: 0.75rem;
        /* Make it slightly smaller on mobile to fit */
    }

    .main-header .row {
        padding: 1rem 0;
    }
}

/* Professional Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Professional Success Messages */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert i {
    margin-right: 0.5rem;
}

/* Enhanced Registration Form Styles */
.enhanced-registration .section-title {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tax-info-section,
.identity-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tax-info-section:hover,
.identity-section:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(217, 0, 28, 0.1);
    transform: translateY(-2px);
}

.terms-section .form-check {
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 20%, #fff3cd 100%);
    border: 2px solid #ffeaa7;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terms-section .form-check::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #ffc107, var(--primary-color));
}

.terms-section .form-check:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(217, 0, 28, 0.15);
    transform: translateY(-1px);
}

.terms-section .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.terms-section .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 0, 28, 0.25);
}

.terms-section .form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 0, 28, 0.25);
}

.terms-section .form-check-label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    font-weight: 500;
}

.terms-section .form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.terms-section .form-check-label a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback,
.valid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Enhanced form field styling */
.tax-info-section .form-control,
.identity-section .form-control {
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.tax-info-section .form-control:focus,
.identity-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(217, 0, 28, 0.15);
    background: white;
}

.tax-info-section .form-text,
.identity-section .form-text {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Responsive enhancements */
@media (max-width: 768px) {

    .tax-info-section,
    .identity-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .terms-section .form-check {
        padding: 1rem;
    }

    .terms-section .form-check-label {
        font-size: 0.85rem;
    }

    .enhanced-registration .section-title {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* Accessibility improvements */
.form-control:focus {
    outline: none;
}

.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading state for form submission */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Service Icons Responsive Layout */
.service-icons-container {
    display: flex !important;
    align-items: center;
    width: 100%;
    padding-bottom: 1rem;
    gap: 0.5rem;
    padding-left: 10px;
    padding-right: 10px;

    /* Default: Scrolling (Mobile First) */
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;

    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.service-icons-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

/* Desktop: Center align and wrap */
@media (min-width: 992px) {
    .service-icons-container {
        flex-wrap: wrap !important;
        justify-content: center !important;
        overflow-x: visible !important;
    }
}