#marketplace a {
    text-decoration: none;
    color: #000000;
}

/* Custom Marketplace Navigation */
.marketplace-nav {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ece8dc 100%);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(123, 30, 34, 0.1);
}

.marketplace-nav-item {
    flex: 1;
    min-width: fit-content;
}

.marketplace-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: #5a5a5a;
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.marketplace-nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(123, 30, 34, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.marketplace-nav-link:hover::before {
    left: 100%;
}

.marketplace-nav-link:hover {
    color: #7b1e22;
    border-color: #7b1e22;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 30, 34, 0.15);
}

.marketplace-nav-link.active {
    color: #ffffff;
    border-color: #7b1e22;
    box-shadow: 0 4px 16px rgba(123, 30, 34, 0.3);
    transform: translateY(-2px);
}

.marketplace-nav-link i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.marketplace-nav-link:hover i {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .marketplace-nav {
        gap: 6px;
        padding: 10px;
    }

    .marketplace-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation on mobile - now using dropdown */
    .marketplace-nav.d-none.d-md-flex {
        display: none !important;
    }
}

.text-burgundy {
    color: #7b1e22 !important;
}

.btn-burgundy {
    background-color: #7b1e22;
    border-color: #7b1e22;
    color: white;
    font-weight: bold;
}

.btn-burgundy:hover {
    background-color: #7a3f32;
    border-color: #7a3f32;
    color: white;
}

.btn-outline-burgundy {
    color: #7b1e22;
    border-color: #7b1e22;
    background-color: transparent;
}

.btn-outline-burgundy:hover,
.btn-outline-burgundy.active {
    background-color: #7b1e22;
    border-color: #7b1e22;
    color: white !important;
    font-weight: bold;
}

.product-card {
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mobile product card adjustments */
@media (max-width: 767.98px) {
    .product-card .card-body {
        padding: 8px;
    }

    .product-card .card-title {
        font-size: 13px;
        line-height: 1.3;
    }

    .product-card .card-text {
        font-size: 11px;
    }

    .product-card .btn {
        font-size: 11px;
        padding: 6px 8px;
    }

    .product-card .fw-bold {
        font-size: 14px;
    }

    .product-card img {
        height: 150px !important;
        padding: 15px !important;
    }

    #grid-view .col-6 {
        padding-left: 6px;
        padding-right: 6px;
    }

    #grid-view .col-lg-4,
    #grid-view .col-md-6 {
        margin-bottom: 12px !important;
    }

    .input-group-sm {
        width: 100px !important;
    }

    .input-group-sm .btn,
    .input-group-sm .form-control {
        font-size: 11px;
        padding: 4px 6px;
    }
}

.filter-sidebar {
    background-color: #fff;
    border: 1px solid #7b1e22;
    border-radius: 8px;
}

.form-check-input:checked {
    background-color: #7b1e22;
    border-color: #7b1e22;
}

.form-check-input:focus {
    border-color: #7b1e22;
    box-shadow: 0 0 0 0.25rem rgba(139, 75, 59, 0.25);
}

.bg-burgundy {
    background-color: #7b1e22 !important;
}

.border-burgundy {
    border-color: #7b1e22 !important;
}

.hero-overlay {
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.7),
        rgba(139, 75, 59, 0.3)
    );
}

.card-img-top {
    border-radius: 8px 8px 0 0;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #7b1e22;
    border-color: #7b1e22;
}

.filter-dropdown .btn {
    border-color: #7b1e22;
    color: #7b1e22;
    background-color: #f8f9fa;
}

.filter-dropdown .btn:hover,
.filter-dropdown .btn:focus {
    background-color: #7b1e22;
    color: white;
    border-color: #7b1e22;
}

.filter-dropdown-content {
    background-color: white;
    border-color: #7b1e22;
}

.filter-dropdown .btn .fas {
    transition: transform 0.3s ease;
}

.filter-dropdown .btn[aria-expanded="true"] .fas {
    transform: rotate(180deg);
}

.filter-dropdown-btn {
    height: 50px !important;
    background-color: #ece8dc !important;
    color: #7b1e22 !important;
}

.filter-dropdown-btn.collapsed {
    background-color: #7b1e22 !important;
    color: #ece8dc !important;
}

.pagination {
    border-radius: 0 !important;
}

.pagination .page-link {
    border-radius: 0 !important;
}

.pagination .active .page-link {
    background-color: #7b1e22;
    border-color: #7b1e22;
    color: #fff !important;
}
.page-link {
    color: #7b1e22 !important;
}
.page-link:hover {
    background-color: #7b1e22;
    color: #fff !important;
}

.filter-header {
    border-color: #7b1e22 !important;
    border: 1px solid;
    margin-bottom: 10px;
    padding-left: 1px;
    padding-top: 5px;
    padding-bottom: 5px;

    background-color: #fff;
}

#viewToggle i {
    font-size: 16px !important;
}

#viewToggle .active {
    color: #7b1e22 !important;
}

/* Mobile view toggle and filter header adjustments */
@media (max-width: 767.98px) {
    .filter-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 12px !important;
        gap: 10px;
    }

    .filter-header > div:first-child {
        width: 100%;
        margin-bottom: 8px;
    }

    .filter-header > div:last-child {
        width: 100%;
        justify-content: space-between !important;
    }

    #viewToggle {
        order: 1;
    }

    #sortSelect {
        order: 2;
        flex-grow: 1;
    }

    #viewToggle i {
        font-size: 20px !important;
    }
}

.skeleton-img {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    padding: 30px;
    object-fit: contain;
}

.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-btn {
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 0;
}

/* list-view için özel boyut */
#products-container .skeleton-img {
    height: 200px;
    padding: 20px;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* List view alignment fixes */
#list-view .card-body {
    padding-left: 0;
}

#list-view .card-body .row {
    margin-left: 0;
    margin-right: 0;
}

/* Quantity input centering fix */
.quantity-input {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Mobile Navigation Styles */
.mobile-nav-toggle {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 14px;
    border: 2px solid #7b1e22;
    background-color: #fff;
    color: #7b1e22;
    font-size: 14px;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus,
.mobile-nav-toggle[aria-expanded="true"] {
    background-color: #7b1e22;
    color: #fff;
    border-color: #7b1e22;
}

.mobile-nav-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.mobile-nav-toggle .bi-chevron-down {
    transition: transform 0.3s ease;
}

.marketplace-nav-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

.marketplace-nav-mobile li {
    border-bottom: 1px solid #dee2e6;
}

.marketplace-nav-mobile li:last-child {
    border-bottom: none;
}

.marketplace-nav-mobile a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #5a5a5a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.marketplace-nav-mobile a:hover {
    background-color: rgba(123, 30, 34, 0.05);
    color: #7b1e22;
    border-left-color: #7b1e22;
}

.marketplace-nav-mobile a.active {
    background-color: transparent;
    color: #7b1e22;
    font-weight: 600;
    border-left: 3px solid #7b1e22;
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
    border-radius: 8px;
    font-weight: 600;
    padding: 12px 14px;
    font-size: 14px;
}

.mobile-filter-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

.mobile-filter-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Mobile Filter Sidebar */
@media (max-width: 767.98px) {
    .filter-sidebar {
        margin-bottom: 20px;
        border-radius: 8px !important;
    }

    .filter-dropdown-btn {
        height: 45px !important;
        font-size: 13px;
    }

    .filter-dropdown-content {
        padding: 12px !important;
    }

    .filter-dropdown-content .form-check {
        padding: 6px 0;
        display: flex;
        align-items: center;
        min-height: auto;
        margin-bottom: 0;
    }

    .filter-dropdown-content .form-check .form-check-input {
        float: none;
        margin-left: 0;
        margin-right: 10px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .filter-dropdown-content .form-check .form-check-label {
        font-size: 14px;
    }

    /* Collapsed state - more compact on mobile */
    #mobileFilterCollapse
        .filter-dropdown
        .collapse:not(.show)
        + .filter-dropdown-content {
        display: none;
    }

    /* Make filter sections collapsed by default on mobile */
    #mobileFilterCollapse .collapse {
        display: none;
    }

    #mobileFilterCollapse .collapse.show {
        display: block;
    }
}

/* Ensure desktop filter is always visible */
@media (min-width: 768px) {
    #mobileFilterCollapse {
        display: block !important;
    }
}
