:root {
    --primary-red: #ff6b6b;
    --dark-red: #8b2635;
    --light-red: #ff7979;
    --accent-orange: #ff6b35;
    --accent-yellow: #ffd700;
    --text-white: #ffffff;
    --text-light: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-dark: rgba(26, 10, 15, 0.95);
    --bg-light: rgba(255, 255, 255, 0.95);
    --border-light: rgba(255, 107, 107, 0.3);
    --border-dark: rgba(0, 0, 0, 0.1);
    --shadow-light: 0 4px 20px rgba(255, 107, 107, 0.2);
    --shadow-heavy: 0 8px 30px rgba(255, 107, 107, 0.4);
    --gradient-main: linear-gradient(135deg, #8b2635 0%, #ff6b6b 50%, #ff7979 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0f;
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.main-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/uploads/authbg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.2;
    z-index: -2;
    pointer-events: none;
}

.main-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 10, 15, 0.3);
}

.particle-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 38, 53, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.main-header.scrolled {
    background: rgba(26, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

.nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav {
    display: flex;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--primary-red);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border-light);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-balance {
    font-size: 0.75rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-heavy);
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--text-white);
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.cta-button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

.mobile-toggle {
    display: none;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-white);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 107, 107, 0.2);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--primary-red);
}

.mobile-cta-button {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.listing-detail-main {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    padding: 2rem 0;
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb-link {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-red);
}

.listing-detail-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 3rem;
}

.listing-gallery .main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 107, 107, 0.05);
    aspect-ratio: 16/9;
    margin-bottom: 1rem;
}

.listing-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.05);
    color: var(--text-secondary);
    font-size: 4rem;
}

.image-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.expand-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: rgba(139, 38, 53, 0.9);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--primary-red);
}

.thumbnail:hover {
    border-color: var(--primary-red);
    opacity: 0.8;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail .placeholder-image {
    font-size: 1.5rem;
}

.listing-info {
    background: rgba(26, 10, 15, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.listing-header {
    margin-bottom: 2rem;
}

.listing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.125rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
}

/* Add to Cart Button Styles */
.btn-cart {
    padding: 0.875rem 1.5rem;
    background: rgba(255, 107, 107, 0.15);
    color: var(--text-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}

.btn-cart:hover {
    background: rgba(255, 107, 107, 0.25);
    transform: translateY(-2px);
}

.btn-cart.in-cart {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.btn-cart.in-cart:hover {
    background: rgba(34, 197, 94, 0.3);
}

.btn-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 107, 107, 0.15);
    color: var(--text-white);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 107, 107, 0.25);
    transform: translateY(-2px);
}

.btn-secondary.favorited {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Cart Notification Styles */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-main);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cart-notification.success {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.cart-notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.cart-notification i {
    font-size: 1.25rem;
}

.owner-notice {
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22c55e;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-content a {
    color: #22c55e;
    text-decoration: underline;
}

.login-notice {
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--primary-red);
    text-align: center;
}

.login-notice a {
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: 600;
}

.detail-tabs {
    background: rgba(26, 10, 15, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
}

.tab-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 107, 107, 0.1);
    color: var(--text-light);
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.description-section {
    margin-bottom: 2rem;
}

.description-section h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.description-section p {
    color: var(--text-light);
    line-height: 1.6;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.overview-card {
    padding: 1.5rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.overview-card:hover {
    background: rgba(255, 107, 107, 0.15);
    transform: translateY(-2px);
}

.overview-card h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-header i {
    color: var(--primary-red);
    font-size: 1.25rem;
}

.stat-header h4 {
    color: var(--text-white);
    font-size: 1.1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:first-child {
    color: var(--text-secondary);
}

.stat-row span:last-child {
    color: var(--text-white);
    font-weight: 600;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.item-card {
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.item-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 107, 107, 0.15);
}

.item-name {
    color: var(--text-light);
    font-weight: 500;
}

.agent-card {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.agent-card .item-name {
    color: #22c55e;
}

.seller-profile {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.seller-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.seller-details {
    flex: 1;
}

.seller-name-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seller-name-header .seller-name-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
}

.verification-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
}

.badge.verified {
    background: #22c55e;
    color: white;
}

.badge.store {
    background: #3b82f6;
    color: white;
}

.badge.document {
    background: #8b5cf6;
    color: white;
}

.seller-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item span:first-child {
    color: var(--text-secondary);
}

.info-item span:last-child {
    color: var(--text-white);
    font-weight: 600;
}

.related-listings {
    margin-bottom: 3rem;
}

.related-listings h2 {
    color: var(--text-white);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: rgba(26, 10, 15, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-red);
}

.card-image {
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 107, 107, 0.05);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image .placeholder-image {
    font-size: 3rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-title {
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-red);
}

.card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.rank-badge, .region-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.card-link {
    padding: 0.75rem 1rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.main-footer {
    background: var(--bg-dark);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    color: var(--text-white);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--primary-red);
}

@media (max-width: 1024px) {
    .listing-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .listing-info {
        position: static;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .mobile-toggle {
        display: block;
    }

    .desktop-nav {
        display: none;
    }

    .user-info {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .header-content {
        padding: 0.75rem 1rem;
    }

    .listing-detail-main {
        margin-top: 80px;
        padding: 1rem 0;
    }

    .listing-info {
        padding: 1.5rem;
    }

    .tab-navigation {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .seller-profile {
        flex-direction: column;
        text-align: center;
    }

    .seller-info {
        grid-template-columns: 1fr;
    }

    .cart-notification {
        right: 10px;
        left: 10px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .listing-detail-main {
        margin-top: 70px;
    }

    .listing-title {
        font-size: 1.25rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .cart-notification {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}