/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    direction: ltr;
    text-align: left;
}

a {
    text-decoration: none;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.modal-icon.success {
    background: #d1fae5;
    color: #10b981;
}

.modal-icon.error {
    background: #fee2e2;
    color: #ef4444;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-message {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.modal-btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}

.modal-btn-cancel:hover {
    background: #e2e8f0;
}

.modal-btn-confirm {
    background: #ef4444;
    color: white;
}

.modal-btn-confirm:hover {
    background: #dc2626;
}

.modal-btn-primary {
    background: #6366f1;
    color: white;
}

.modal-btn-primary:hover {
    background: #4f46e5;
}

:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #FFB800;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-400: #94a3b8;
    --color-slate-600: #475569;
    --color-slate-900: #0f172a;
    --color-indigo-50: #eef2ff;
    --color-indigo-600: #6366f1;
    --color-white: #ffffff;
    --color-black: #000000;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-slate-50);
    color: var(--color-slate-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Desktop Header */
.desktop-header {
    display: none;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    position: sticky;
    top: 0;
    z-index: 30;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-dot {
    width: 16px;
    height: 16px;
    background: var(--color-white);
    border-radius: 50%;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.search-container {
    flex: 1;
    max-width: 42rem;
    margin: 0 2rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-slate-400);
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--color-slate-100);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    background: var(--color-white);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-600);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-slate-100);
    color: var(--color-slate-600);
    transition: all 0.2s;
    position: relative;
}

.nav-icon-btn:hover {
    background: var(--color-indigo-50);
    color: var(--color-primary);
    transform: scale(1.05);
}

.nav-icon-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-slate-200);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-600);
}

.profile-avatar:hover,
.profile-avatar.active {
    border-color: var(--color-primary);
    background: var(--color-indigo-50);
}

.btn-sell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.1);
    transition: transform 0.2s;
}

.btn-sell:hover {
    transform: scale(1.05);
}

.btn-sell:active {
    transform: scale(0.95);
}

/* Mobile Header */
.mobile-header {
    display: block;
    background: var(--color-white);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

.mobile-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-search {
    flex: 1;
    position: relative;
}

.mobile-search .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-slate-400);
}

.mobile-search .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
}

.menu-btn {
    padding: 0.75rem;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    color: var(--color-slate-600);
    cursor: pointer;
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Bottom Navigation */
.mobile-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-slate-100);
    padding: 0.75rem 1.5rem 1.5rem;
    z-index: 40;
}

.mobile-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    background: none;
    border: none;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item span {
    font-size: 0.6875rem;
    font-weight: 700;
}

.fab-container {
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 4px solid var(--color-white);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.fab:hover {
    transform: scale(1.1);
}

.fab.active {
    background: var(--color-primary-dark);
}

.nav-spacer {
    width: 48px;
}

/* Banner Slider */
.banner-slider {
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s;
}

.banner-slide.active {
    opacity: 1;
}

.banner-image {
    position: absolute;
    inset: 0;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3), transparent);
}

.banner-content {
    position: relative;
    z-index: 10;
    padding: 0 1.5rem;
    max-width: 32rem;
    color: var(--color-white);
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.banner-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    margin-bottom: 1rem;
    max-width: 24rem;
}

.banner-btn {
    padding: 0.5rem 1.25rem;
    background: var(--color-white);
    color: var(--color-slate-900);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.banner-btn:hover {
    background: var(--color-indigo-50);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* Categories */
.categories-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-slate-600);
    transition: color 0.2s;
}

.category-item:hover .category-name {
    color: var(--color-primary);
}

/* Product Cards */
.products-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--color-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-slate-100);
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1);
}

.product-card.horizontal {
    width: 160px;
}

.product-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-like-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: color 0.2s;
}

.product-like-btn:hover,
.product-like-btn.liked {
    color: #ef4444;
}

.product-trending-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--color-secondary);
    color: var(--color-black);
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border-top-right-radius: 0.5rem;
}

.product-info {
    padding: 0.75rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.product-name {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-slate-600);
    margin-top: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-slate-400);
    margin-top: 0.375rem;
    font-size: 0.625rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .desktop-header {
        display: block;
    }

    .mobile-header,
    .mobile-nav {
        display: none;
    }

    .main-container {
        padding: 2rem 1.5rem;
    }

    .banner-slider {
        height: 350px;
        border-radius: 1.5rem;
    }

    .banner-title {
        font-size: 2.25rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .products-scroll {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .product-card.horizontal {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Facebook Messenger-Style Chat */
.messenger-container {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: calc(100vh - 80px);
    background: var(--color-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Left Sidebar - Conversations List */
.messenger-sidebar {
    border-right: 1px solid var(--color-slate-200);
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.messenger-sidebar-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-slate-200);
}

.messenger-sidebar-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1b4b;
}

.messenger-sidebar-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--color-slate-200);
}

.messenger-search {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-slate-50);
    margin: 0.75rem 1rem;
    border-radius: 9999px;
}

.messenger-search svg {
    color: var(--color-slate-400);
    flex-shrink: 0;
}

.messenger-search input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 0.9375rem;
    color: #1e1b4b;
}

.messenger-search input::placeholder {
    color: var(--color-slate-400);
}

.messenger-conversations {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.conversation-item:hover {
    background: var(--color-slate-50);
}

.conversation-item.active {
    background: var(--color-slate-100);
}

.conversation-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.conversation-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--color-white);
    border-radius: 50%;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e1b4b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-time {
    font-size: 0.8125rem;
    color: var(--color-slate-500);
    flex-shrink: 0;
}

.conversation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.conversation-preview {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.unread-count {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

.empty-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-conversations svg {
    color: var(--color-slate-300);
    margin-bottom: 1rem;
}

.empty-conversations p {
    color: var(--color-slate-500);
    font-size: 0.9375rem;
}

/* Right Panel - Chat Window */
.messenger-chat {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
}

.messenger-chat-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.messenger-chat-empty svg {
    color: var(--color-slate-300);
    margin-bottom: 1.5rem;
}

.messenger-chat-empty h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.messenger-chat-empty p {
    color: var(--color-slate-500);
    font-size: 0.9375rem;
}

.messenger-chat-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messenger-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--color-slate-200);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.back-btn {
    display: none;
    width: auto;
    height: 36px;
    padding: 0 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-header-info h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e1b4b;
}

.chat-header-status {
    font-size: 0.8125rem;
    color: var(--color-slate-500);
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.messenger-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--color-white);
}

.message-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.message-group.sent {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    align-self: flex-end;
}

.message-group.sent .message-avatar {
    display: none;
}

.message-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    max-width: 60%;
}

.message-bubble {
    padding: 0.5rem 0.875rem;
    border-radius: 1.125rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}

.message-status {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0.8;
}

.message-group.received .message-bubble {
    background: var(--color-slate-100);
    color: #1e1b4b;
}

.message-group.sent .message-bubble {
    background: var(--color-primary);
    color: var(--color-white);
    margin-left: auto;
}

.message-time {
    font-size: 0.75rem;
    color: var(--color-slate-400);
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.messenger-chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-slate-200);
}

.message-input-wrapper {
    flex: 1;
    background: var(--color-slate-50);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.message-input-wrapper input {
    width: 100%;
    border: none;
    background: none;
    outline: none;
    font-size: 0.9375rem;
    color: #1e1b4b;
}

.message-input-wrapper input::placeholder {
    color: var(--color-slate-400);
}

.sending-indicator {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-slate-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.send-btn {
    transition: all 0.2s ease;
}

.send-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
}

.send-btn:disabled {
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .messenger-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 60px);
    }

    .messenger-sidebar {
        display: flex;
    }

    .messenger-chat {
        display: none;
    }

    .messenger-sidebar.hidden {
        display: none;
    }

    .messenger-chat.active {
        display: flex;
    }

    .messenger-chat .back-btn {
        display: flex;
    }

    .message-bubbles {
        max-width: 75%;
    }
}

/* My Ads Page Styles */
.my-ads-page {
    padding: 1rem 0;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

.ad-card {
    background: var(--color-white);
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.ad-card:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1);
}

.ad-image-container {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ad-card:hover .ad-image {
    transform: scale(1.1);
}

.ad-status-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ad-info {
    padding: 1.25rem;
}

.ad-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.ad-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-slate-400);
    margin-bottom: 1rem;
}

.ad-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-slate-50);
}

.ad-price {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1e1b4b;
}

.ad-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-slate-400);
    font-weight: 700;
}

/* Profile Page Styles */
.profile-page {
    padding: 1rem 0;
}

.profile-content {
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    background: var(--color-white);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid var(--color-slate-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.profile-header-bg {
    height: 128px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
}

.profile-info {
    padding: 2rem;
    text-align: center;
    margin-top: -64px;
}

.profile-avatar-large {
    width: 128px;
    height: 128px;
    border-radius: 2.5rem;
    border: 8px solid var(--color-white);
    object-fit: cover;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e1b4b;
    margin-bottom: 0.25rem;
}

.profile-email {
    color: var(--color-slate-400);
    font-weight: 500;
    margin-bottom: 2rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: var(--color-slate-50);
    padding: 1.25rem;
    border-radius: 1.5rem;
    border: 1px solid var(--color-slate-100);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #1e1b4b;
}

.stat-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Post Ad Page Styles */
.post-ad-page {
    padding: 1rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.category-card {
    background: var(--color-white);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid var(--color-slate-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1);
    border-color: var(--color-indigo-100);
}

.category-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.category-card:hover .category-icon-large {
    transform: scale(1.1);
}

.category-name-large {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-slate-600);
    text-align: center;
    line-height: 1.2;
}

.category-card:hover .category-name-large {
    color: var(--color-primary);
}

/* Product Detail Page Styles */
.product-detail-page {
    padding: 1rem 0;
}

.product-detail-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    overflow: hidden;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info {
    padding: 0 0.5rem;
}

.product-detail-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.product-detail-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-slate-400);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.product-detail-category {
    color: var(--color-slate-600);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    flex: 1;
    padding: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    flex: 1;
    padding: 1rem;
    background: var(--color-white);
    color: var(--color-slate-700);
    border: 2px solid var(--color-slate-200);
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--color-slate-50);
}

.btn-whatsapp {
    flex: 1;
    padding: 1rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
}

.btn-edit {
    flex: 1;
    padding: 1rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-edit:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-edit svg {
    width: 20px;
    height: 20px;
}

.product-detail-description {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-slate-100);
}

.product-detail-description h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
}

.product-detail-description p {
    color: var(--color-slate-600);
    line-height: 1.6;
}

/* Responsive adjustments for larger screens */
@media (min-width: 768px) {
    .page-title {
        font-size: 2.25rem;
    }

    .ads-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .category-card {
        padding: 2rem;
    }

    .category-icon-large {
        width: 80px;
        height: 80px;
    }

    .category-name-large {
        font-size: 0.875rem;
    }

    .product-detail-container {
        flex-direction: row;
        gap: 4rem;
    }

    .product-detail-image {
        width: 55%;
        aspect-ratio: 4/5;
    }

    .product-detail-info {
        flex: 1;
    }
}

@media (min-width: 1024px) {
    .ads-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .ads-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.mobile-only {
    display: block;
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}

/* Additional styles for separate pages */

/* Category filters */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-filter {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.filter-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn, .sort-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-slate-200);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-600);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover, .sort-btn:hover {
    background: var(--color-slate-50);
}

/* Ads tabs */
.ads-tabs {
    display: flex;
    border-bottom: 2px solid var(--color-slate-200);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-400);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* Ad delete button */
.ad-delete-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: all 0.2s;
}

.ad-delete-btn:hover {
    color: #ef4444;
    background: var(--color-white);
}

/* Chat list */
.chat-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-slate-100);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.chat-item:hover {
    background: var(--color-slate-50);
}

.chat-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid var(--color-white);
    border-radius: 50%;
}

.chat-info {
    flex: 1;
    min-width: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.chat-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e1b4b;
}

.chat-time {
    font-size: 0.625rem;
    color: var(--color-slate-400);
}

.chat-message {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.unread-badge {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

/* Product detail page styles */
.product-detail-page {
    padding: 1rem 0;
}

.desktop-only {
    display: none;
}

.mobile-back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

@media (min-width: 768px) {
    .mobile-back-btn {
        display: none !important;
    }
}

.product-detail-image-section {
    width: 100%;
    margin-bottom: 2rem;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-actions-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-slate-600);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-indigo-50);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-slate-500);
}

.product-detail-price-box {
    background: var(--color-slate-50);
    border-radius: 1.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.price-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.5rem 0 1.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-slate-900);
}

.currency-code {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-400);
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.product-specs {
    margin-bottom: 2rem;
}

.specs-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-slate-50);
    border-radius: 1rem;
}

.spec-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-slate-400);
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 0.875rem;
    color: var(--color-slate-900);
    font-weight: 700;
}

.product-description {
    padding-top: 2rem;
    border-top: 1px solid var(--color-slate-100);
}

.description-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
}

.description-text {
    color: var(--color-slate-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-slate-900);
    color: var(--color-white);
    border-radius: 1rem;
}

.seller-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-details {
    flex: 1;
}

.seller-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.seller-name {
    font-weight: 700;
}

.view-profile-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 768px) {
    .desktop-only {
        display: flex;
        position: relative;
        z-index: 100;
        margin-bottom: 1.5rem;
    }
    
    .mobile-back-btn {
        display: none !important;
    }
    
    .product-detail-container {
        display: flex;
        gap: 4rem;
    }
    
    .product-detail-image-section {
        width: 55%;
        margin-bottom: 0;
    }
    
    .product-detail-image {
        aspect-ratio: 4/5;
    }
    
    .product-detail-content {
        flex: 1;
    }
    
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product Detail Page - Compact Version */
.product-detail-page {
    padding: 0.5rem 0;
}

.product-detail-page .main-container {
    max-width: 1200px;
}

.product-detail-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-image-section {
    width: 100%;
    margin-bottom: 0;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    max-height: 400px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-content {
    padding: 0 0.5rem;
}

.product-detail-header {
    margin-bottom: 1rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--color-indigo-50);
    color: var(--color-primary);
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.verified-badge svg {
    width: 12px;
    height: 12px;
}

.product-detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-slate-500);
}

.meta-item svg {
    width: 14px;
    height: 14px;
}

.product-detail-price-box {
    background: var(--color-slate-50);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--color-slate-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0.25rem 0 1rem;
}

.currency {
    font-size: 1rem;
    font-weight: 700;
}

.amount {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--color-slate-900);
}

.currency-code {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-slate-400);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-buttons .btn-primary svg {
    width: 18px;
    height: 18px;
}

.product-specs {
    margin-bottom: 1.5rem;
}

.specs-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-slate-50);
    border-radius: 0.75rem;
}

.spec-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.spec-item > div {
    flex: 1;
    min-width: 0;
}

.spec-label {
    display: block;
    font-size: 0.625rem;
    color: var(--color-slate-400);
    font-weight: 600;
}

.spec-value {
    display: block;
    font-size: 0.75rem;
    color: var(--color-slate-900);
    font-weight: 700;
}

.product-description {
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-slate-100);
}

.description-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.description-text {
    color: var(--color-slate-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--color-slate-900);
    color: var(--color-white);
    border-radius: 0.75rem;
}

.seller-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-avatar svg {
    width: 20px;
    height: 20px;
}

.seller-details {
    flex: 1;
    min-width: 0;
}

.seller-label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.6);
}

.seller-name {
    font-weight: 700;
    font-size: 0.875rem;
}

.view-profile-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    color: var(--color-white);
    font-size: 0.625rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.product-detail-actions-overlay {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-slate-600);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Desktop adjustments */
@media (min-width: 768px) {
    .product-detail-page {
        padding: 1.5rem 0;
    }
    
    .product-detail-page .back-btn.desktop-only {
        display: flex;
    }
    
    .product-detail-container {
        flex-direction: row;
        gap: 2.5rem;
    }
    
    .product-detail-image-section {
        width: 50%;
        max-width: 500px;
    }
    
    .product-detail-image {
        aspect-ratio: 1;
        max-height: 500px;
        border-radius: 1.5rem;
    }
    
    .product-detail-content {
        flex: 1;
        padding: 0;
    }
    
    .product-detail-title {
        font-size: 1.75rem;
    }
    
    .product-detail-meta {
        gap: 1.5rem;
    }
    
    .meta-item {
        font-size: 0.875rem;
    }
    
    .meta-item svg {
        width: 16px;
        height: 16px;
    }
    
    .product-detail-price-box {
        padding: 1.5rem;
    }
    
    .price-label {
        font-size: 0.75rem;
    }
    
    .currency {
        font-size: 1.25rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .currency-code {
        font-size: 1rem;
    }
    
    .specs-title {
        font-size: 1.125rem;
    }
    
    .description-title {
        font-size: 1.125rem;
    }
    
    .description-text {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .product-detail-image-section {
        width: 45%;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #64748b;
}

.empty-state svg {
    margin: 0 auto 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.empty-state a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #6366f1;
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.empty-state a:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
}

.dropdown-item:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item svg {
    color: #64748b;
}

.profile-avatar {
    cursor: pointer;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin: 0 auto 1.5rem;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.success-message {
    background: #d1fae5;
    color: #059669;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-btn {
    padding: 0.875rem 1.5rem;
    background: #6366f1;
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.auth-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #4f46e5;
}

@media (max-width: 768px) {
    .auth-page {
        min-height: calc(100vh - 120px);
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}


/* Post/Edit Form Styles */
.post-form-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.post-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.images-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.image-upload-box {
    width: 100%;
    height: 150px;
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}

.image-upload-box:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.add-image-box {
    border-style: dashed;
}

.image-preview-box {
    border-style: solid;
    border-color: #6366f1;
    cursor: default;
}

.image-preview-box:hover {
    background: transparent;
}

.btn-remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.btn-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.primary-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.upload-placeholder {
    text-align: center;
    pointer-events: none;
}

.upload-placeholder svg {
    color: #cbd5e1;
}

.btn-upload {
    padding: 0.75rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-upload:hover {
    background: #4f46e5;
}

@media (max-width: 768px) {
    .post-form-page {
        padding: 1rem;
    }
    
    .post-form {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .images-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .image-upload-box {
        height: 120px;
    }
}


/* Map Styles */
.product-location-map {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.map-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.btn-map-picker {
    margin-top: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    color: #6366f1;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-map-picker:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Map Modal */
.map-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.map-modal-content {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.map-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.map-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.map-close-btn:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.map-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .map-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-modal-footer .btn-primary {
        width: 100%;
    }
}


/* Comments Section */
.product-comments-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-title svg {
    color: #6366f1;
}

/* Add Comment Form */
.add-comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-input-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: all 0.2s;
}

.comment-input-wrapper textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.comment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.rating-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stars-input {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.5rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.star:hover,
.star.active {
    color: #fbbf24;
}

.btn-submit-comment {
    padding: 0.625rem 1.25rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit-comment:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

.login-to-comment {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

.login-to-comment p {
    margin: 0;
    color: #64748b;
}

.login-to-comment a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
}

.login-to-comment a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loading-comments,
.no-comments {
    padding: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.comment-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
}

.comment-rating {
    color: #fbbf24;
    font-size: 0.875rem;
}

.comment-time {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: auto;
}

.btn-delete-comment {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.btn-delete-comment:hover {
    background: #fee2e2;
}

.comment-text {
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Reply Button */
.btn-reply {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    transition: all 0.2s;
}

.btn-reply:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #6366f1;
}

.btn-reply svg {
    width: 14px;
    height: 14px;
}

/* Reply Form */
.reply-form {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-submit-reply,
.btn-cancel-reply {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-submit-reply {
    background: #6366f1;
    color: white;
}

.btn-submit-reply:hover {
    background: #4f46e5;
}

.btn-cancel-reply {
    background: #f1f5f9;
    color: #64748b;
}

.btn-cancel-reply:hover {
    background: #e2e8f0;
}

/* Replies Container */
.replies-container {
    margin-top: 1rem;
    margin-left: 2.5rem;
    padding-left: 1rem;
    border-left: 2px solid #e2e8f0;
}

.comment-reply {
    margin-bottom: 0.75rem;
    padding: 0.75rem !important;
    background: #f8fafc;
}

.comment-reply:last-child {
    margin-bottom: 0;
}

.comment-reply .comment-avatar img {
    width: 32px;
    height: 32px;
}

.comment-reply .comment-author {
    font-size: 0.8125rem;
}

.comment-reply .comment-text {
    font-size: 0.8125rem;
}

@media (max-width: 768px) {
    .add-comment-form {
        flex-direction: column;
        padding: 1rem;
    }
    
    .comment-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-submit-comment {
        width: 100%;
        justify-content: center;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        font-size: 0.8125rem;
    }
    
    .comment-time {
        margin-left: 0;
        width: 100%;
    }
    
    /* Reply styles for mobile */
    .replies-container {
        margin-left: 1rem;
        padding-left: 0.5rem;
    }
    
    .reply-form {
        padding: 0.75rem;
    }
    
    .btn-reply {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .comment-reply .comment-avatar img {
        width: 28px;
        height: 28px;
    }
}


/* Compact Product Page Styles */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.product-detail-image-section {
    max-width: 450px;
}

.product-detail-image {
    height: 400px;
}

/* Product Image Thumbnails */
.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.thumbnail-item {
    width: 100%;
    height: 80px;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.6;
}

.thumbnail-item:hover {
    opacity: 1;
    border-color: #6366f1;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-location-map-sidebar {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.map-title-sidebar {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-title-sidebar svg {
    color: #6366f1;
}

/* Map in Content Area */
.product-location-map-content {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.map-title-content {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-title-content svg {
    color: #6366f1;
}

/* Compact Content Styles */
.product-detail-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.verified-badge {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.75rem !important;
}

.product-detail-meta {
    gap: 0.75rem !important;
}

.meta-item {
    font-size: 0.8125rem !important;
}

.product-detail-price-box {
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.price-label {
    font-size: 0.75rem !important;
}

.price-value {
    margin: 0.5rem 0 !important;
}

.amount {
    font-size: 1.75rem !important;
}

.action-buttons {
    gap: 0.5rem !important;
}

.btn-compact {
    padding: 0.625rem 1rem !important;
    font-size: 0.8125rem !important;
}

.btn-compact svg {
    width: 16px !important;
    height: 16px !important;
}

/* Compact Specs */
.product-specs {
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.specs-title {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.specs-grid {
    gap: 0.75rem !important;
}

.spec-item {
    padding: 0.75rem !important;
}

.spec-item svg {
    width: 18px !important;
    height: 18px !important;
}

.spec-label {
    font-size: 0.75rem !important;
}

.spec-value {
    font-size: 0.8125rem !important;
}

/* Compact Description */
.product-description {
    padding: 1.25rem !important;
    margin-bottom: 1.25rem !important;
}

.description-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.description-text {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* Compact Seller Info */
.seller-info-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.seller-avatar-small img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-details-compact {
    flex: 1;
}

.seller-label-small {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0 0 0.125rem 0;
}

.seller-name-small {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.view-profile-btn-small {
    padding: 0.5rem 1rem;
    background: white;
    color: #6366f1;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.view-profile-btn-small:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

/* Compact Comments */
.product-comments-section {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
}

.comments-title {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
}

.add-comment-form {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.comment-input-wrapper textarea {
    min-height: 60px !important;
    font-size: 0.8125rem !important;
}

.rating-label {
    font-size: 0.75rem !important;
}

.star {
    font-size: 1.25rem !important;
}

.btn-submit-comment {
    padding: 0.5rem 1rem !important;
    font-size: 0.8125rem !important;
}

.comment-item {
    padding: 1rem !important;
}

.comment-avatar img {
    width: 36px !important;
    height: 36px !important;
}

.comment-author {
    font-size: 0.8125rem !important;
}

.comment-text {
    font-size: 0.8125rem !important;
}

@media (max-width: 768px) {
    .product-detail-image-section {
        max-width: 100%;
    }
    
    .product-detail-image {
        height: 300px;
    }
    
    .product-location-map-sidebar {
        margin-top: 1rem;
    }
}

/* Mobile responsive for product thumbnails */
@media (max-width: 768px) {
    .product-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.375rem;
    }
    
    .thumbnail-item {
        height: 60px;
    }
}
