* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    transition: transform 0.3s ease;
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F8F9FA;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.navbar .logo img {
    height: 40px;
    width: auto;
}

.navbar .search-bar {
    width: 300px;
    position: relative;
}

.navbar .search-bar input {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.navbar .search-bar input:focus {
    box-shadow: 0 0 5px #ff9100f5;
}

.navbar .search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar .nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar .nav-links a:hover {
    color: #FF510B;
}

.navbar .create-ad {
    background-color: #FF510B;
    color: #fff!important;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.navbar .create-ad:hover {
    background-color: #FF0F2E;
}

.navbar .menu-icon {
    display: none;
    color: #555;
    font-size: 24px;
    cursor: pointer;
}
 
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    color: #FF510B;
}

.bottom-nav .nav-item span {
    font-weight: 500;
}

.bottom-nav .nav-item:hover,
.bottom-nav .nav-item:focus {
    color: #FF510B;
    transform: translateY(-3px);  
}

 
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }
}

 
@media (max-width: 768px) {
    body {
        padding-bottom: 70px;  
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F9FA;
    padding: 70px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;  
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 16px;
    padding: 15px 0;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #FF510B;
}
.mobile-menu .user-section {
    margin-top: 30px;
    margin-bottom: 20px;
}

.mobile-menu .welcome-msg {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

 
.mobile-menu .auth-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

 
.mobile-menu .login-btn {
    background-color: #FF510B;
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 81, 11, 0.3);
}

.mobile-menu .login-btn:hover {
    background-color: #e6450a;
    transform: translateY(-2px);  
}

 
.mobile-menu .register-btn {
    background-color: #fff;
    color: #FF510B;
    border: 2px solid #FF510B;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-menu .register-btn:hover {
    background-color: #FF510B;
    color: #fff;
    transform: translateY(-2px);
}
 
.mobile-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

 
.mobile-categories .category {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

 
.mobile-categories .main-cat {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.mobile-categories .main-cat:hover {
    background-color: #f1f3f5;
}

.mobile-categories .main-cat i {
    margin-right: 12px;
    color: #FF510B;
    font-size: 16px;
}

.mobile-categories .main-cat a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    flex: 1;  
}

 
.mobile-categories .toggle-icon {
    cursor: pointer;
    padding-left: 10px;
}

.mobile-categories .toggle-icon i {
    color: #555;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.mobile-categories .category.active .toggle-icon i {
    transform: rotate(180deg);  
}

 
.mobile-categories .subcategories {
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: max-height 0.3s ease;
}

.mobile-categories .category.active .subcategories {
    max-height: 200px;  
}

.mobile-categories .subcategories li {
    padding: 10px 20px;
    border-bottom: 1px solid #e9ecef;
}

.mobile-categories .subcategories li:last-child {
    border-bottom: none;
}

.mobile-categories .subcategories li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    display: block;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-categories .subcategories li a:hover {
    color: #FF510B;
    padding-left: 5px;
}
.mobile-menu .stats-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;  
}

.mobile-menu .stat-box {
    background-color: #fff;
    width: calc(50% - 5px);  
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-menu .stat-box i {
    font-size: 18px;
    color: #FF510B;
    margin-bottom: 5px;
}

.mobile-menu .stat-box .stat-title {
    display: block;
    font-size: 12px;
    color: #666;
}

.mobile-menu .stat-box .stat-number {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 80px auto 20px; 
    padding: 0 10px;
}

.ad-title {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.media-section {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.image-wrapper {
    width: 60%;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.details-section {
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #FF510B;
    width: 100%;
}

.details-table {
    width: calc(50% - 10px);
    background-color: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.details-table p {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.details-table p:last-child {
    border-bottom: none;
}

.details-table span:first-child {
    font-weight: 500;
    color: #2c3e50;
}

.details-table span:last-child {
    color: #555;
}

.owner-info {
    width: calc(50% - 10px);
    height: 300px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.owner-info h3 {
font-size: 16px; 
font-weight: 600;
color: #2c3e50; 
margin-bottom: 10px; 
text-transform: uppercase; 
letter-spacing: 0.5px; 
}
.owner-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: #555;
}

.owner-info p i {
    color: #FF510B;
}

.owner-info button {
    width: 100%;
    padding: 10px;
    background-color: #FF510B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.owner-info button:hover {
    background-color: #FF0F2E;
}

.media-tabs {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.media-tabs button {
    background: none;
    border: none;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.media-tabs button.active {
    color: #FF510B;
    border-bottom: 2px solid #FF510B;
}

.photos-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
}

.photos-slider::-webkit-scrollbar {
    height: 8px;
}

.photos-slider::-webkit-scrollbar-thumb {
    background: #FF510B;
    border-radius: 4px;
}

.photo-item {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.photo-item:hover {
    opacity: 0.8;
}

.video-content {
    display: none;
    margin-top: 10px;
}

.video-content iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tabs button {
    background: none;
    border: none;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.tabs button.active {
    color: #FF510B;
    border-bottom: 2px solid #FF510B;
}

.description {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.similar-ads {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.similar-ad {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 15px;
}

.similar-ad img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.similar-ad h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.similar-ad p {
    font-size: 14px;
    color: #777;
}

.similar-ad .price {
    font-size: 16px;
    margin: 0;
}

.features {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.features h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.features label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.comments {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comments-header h3 {
    font-size: 18px;
    color: #2c3e50;
}

.comments-header select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.comment {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.comment:last-child {
    border-bottom: none;
}

.comment-form {
    margin-top: 20px;
}

.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-form button {
    padding: 10px 20px;
    background-color: #FF510B;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.comment-form button:hover {
    background-color: #FF0F2E;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .search-bar, .navbar .nav-links {
        display: none;
    }

    .navbar .menu-icon {
        display: block;
    }

    .container {
        margin: 70px 10px 20px;
    }

    .media-section {
        flex-direction: column;
    }

    .image-wrapper {
        width: 100%;
    }

    .details-section {
        width: 100%;
    }

    .main-image {
        height: 250px;
    }

    .media-tabs button {
        font-size: 14px;
        padding: 8px;
    }

    .photo-item {
        width: 80px;
        height: 80px;
    }

    .video-content iframe {
        height: 250px;
    }

    .tabs button {
        font-size: 14px;
        padding: 8px;
    }

    .similar-ads {
        grid-template-columns: 1fr;
    }

    .features h3, .comments-header h3 {
        font-size: 16px;
    }

    .comments-header select {
        font-size: 12px;
        padding: 4px;
    }

    .comment-form textarea {
        font-size: 12px;
    }

    .comment-form button {
        font-size: 12px;
        padding: 8px 16px;
    }
    body.menu-open .container {
        overflow-y: hidden;
    }
    .details-table {
        width: 100%;
    }
    .owner-info {
        width: 100%;
    }
}