/* Ozurgeti Marketplace - Main Styles */
:root {
    --om-primary: #e91e8c;
    --om-primary-dark: #c2177a;
    --om-vip: #f4a100;
    --om-bg: #f5f5f5;
    --om-card-bg: #ffffff;
    --om-text: #222222;
    --om-text-light: #666666;
    --om-border: #e0e0e0;
    --om-radius: 12px;
    --om-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.om-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px 40px; font-family: 'FiraGO', 'Segoe UI', sans-serif; color: var(--om-text); }

/* Header */
.om-wrap .om-header { background: #fff; border-bottom: 1px solid var(--om-border); padding: 12px 0; margin-bottom: 24px; }
.om-wrap .om-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 12px !important; }
.om-wrap .om-logo { font-size: 20px !important; font-weight: 700 !important; color: var(--om-primary) !important; }
.om-wrap .om-header-actions { display: flex !important; gap: 8px !important; flex-wrap: wrap !important; }

/* Buttons */
.om-wrap .om-btn { display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 8px 16px !important; border-radius: 8px !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important; text-decoration: none !important; border: none !important; transition: all 0.2s !important; white-space: nowrap !important; box-sizing: border-box !important; }
.om-wrap .om-btn-primary { background: var(--om-primary) !important; color: #fff !important; }
.om-wrap .om-btn-primary:hover { background: var(--om-primary-dark) !important; color: #fff !important; }
.om-wrap .om-btn-outline { background: transparent !important; color: var(--om-primary) !important; border: 2px solid var(--om-primary) !important; }
.om-wrap .om-btn-outline:hover { background: var(--om-primary) !important; color: #fff !important; }
.om-wrap .om-btn-ghost { background: #f0f0f0 !important; color: var(--om-text) !important; }
.om-wrap .om-btn-ghost:hover { background: #e0e0e0 !important; }
.om-wrap .om-btn-vip { background: var(--om-vip) !important; color: #fff !important; }
.om-wrap .om-btn-vip:hover { background: #e09500 !important; color: #fff !important; }
.om-wrap .om-btn-danger { background: #ff4444 !important; color: #fff !important; }
.om-wrap .om-btn-danger:hover { background: #cc0000 !important; color: #fff !important; }
.om-wrap .om-btn-full { width: 100% !important; justify-content: center !important; padding: 12px !important; }
.om-wrap .om-btn-lg { padding: 12px 24px !important; font-size: 16px !important; }
.om-wrap .om-btn-sm { padding: 5px 10px !important; font-size: 12px !important; }

/* Search */
.om-wrap .om-search-box { margin-bottom: 20px; }
.om-wrap .om-search-form { display: flex !important; gap: 8px !important; }
.om-wrap .om-search-input { flex: 1 !important; padding: 12px 16px !important; border: 2px solid var(--om-border) !important; border-radius: 10px !important; font-size: 15px !important; outline: none !important; transition: border 0.2s !important; box-sizing: border-box !important; background: #fff !important; }
.om-wrap .om-search-input:focus { border-color: var(--om-primary) !important; }

/* Categories - FORCED STYLES */
.om-mp-cats-row { gap: 4px !important; cursor: grab !important; }

.om-wrap .om-mp-cats-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: 52px !important;
    height: 52px !important;
    padding: 4px 0 12px !important;
    margin-bottom: 20px !important;
    scrollbar-width: none !important;
    align-items: center !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.om-wrap .om-mp-cats-row::-webkit-scrollbar { display: none !important; }
.om-wrap .om-cat-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 7px 12px !important;
    background: #fff !important;
    border: 2px solid var(--om-border) !important;
    border-radius: 24px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    color: var(--om-text) !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.om-wrap .om-cat-pill:hover,
.om-wrap .om-cat-pill.active {
    background: var(--om-primary) !important;
    border-color: var(--om-primary) !important;
    color: #fff !important;
}
.om-wrap .om-cat-icon { font-size: 15px !important; line-height: 1 !important; }

/* Stats */
.om-wrap .om-stats-bar { color: var(--om-text-light); font-size: 14px; margin-bottom: 16px; }

/* Grid */
.om-wrap .om-listings-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; gap: 16px !important; }

/* Card */
.om-wrap .om-card { background: var(--om-card-bg); border-radius: var(--om-radius); box-shadow: var(--om-shadow); overflow: hidden; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.om-wrap .om-card:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.om-wrap .om-card-vip { border: 2px solid var(--om-vip) !important; }
.om-wrap .om-vip-badge { position: absolute !important; top: 8px !important; left: 8px !important; background: var(--om-vip) !important; color: #fff !important; padding: 3px 8px !important; border-radius: 6px !important; font-size: 11px !important; font-weight: 700 !important; z-index: 1 !important; }
.om-wrap .om-card-image-link { display: block !important; }
.om-wrap .om-card-img { width: 100% !important; height: 180px !important; object-fit: cover !important; display: block !important; }
.om-wrap .om-card-img-placeholder { width: 100% !important; height: 180px !important; background: #f0f0f0 !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 40px !important; }
.om-wrap .om-card-body { padding: 12px !important; }
.om-wrap .om-card-cat { font-size: 11px !important; color: var(--om-text-light) !important; margin-bottom: 4px !important; }
.om-wrap .om-card-title { font-size: 14px !important; font-weight: 600 !important; color: var(--om-text) !important; text-decoration: none !important; display: block !important; margin-bottom: 6px !important; line-height: 1.4 !important; }
.om-wrap .om-card-title:hover { color: var(--om-primary) !important; }
.om-wrap .om-card-price { font-size: 17px !important; font-weight: 700 !important; color: var(--om-primary) !important; margin-bottom: 8px !important; }
.om-wrap .om-card-footer { display: flex !important; justify-content: space-between !important; font-size: 11px !important; color: var(--om-text-light) !important; }

/* Pagination */
.om-wrap .om-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.om-wrap .om-page-btn { padding: 8px 14px; border-radius: 8px; background: #fff; border: 2px solid var(--om-border); text-decoration: none; color: var(--om-text); font-weight: 600; }
.om-wrap .om-page-btn.active { background: var(--om-primary); border-color: var(--om-primary); color: #fff; }

/* Auth */
.om-wrap .om-auth-box { max-width: 420px; margin: 40px auto; background: #fff; padding: 32px; border-radius: var(--om-radius); box-shadow: var(--om-shadow); }
.om-wrap .om-auth-box h2 { text-align: center; margin-bottom: 24px; color: var(--om-text); }
.om-wrap .om-auth-links { text-align: center; margin-top: 20px; font-size: 14px; color: var(--om-text-light); }
.om-wrap .om-auth-links a { color: var(--om-primary); font-weight: 600; text-decoration: none; }

/* Form */
.om-wrap .om-form { display: flex !important; flex-direction: column !important; gap: 16px !important; }
.om-wrap .om-form-box { max-width: 600px; margin: 0 auto; background: #fff; padding: 32px; border-radius: var(--om-radius); box-shadow: var(--om-shadow); }
.om-wrap .om-form-box h2 { margin-bottom: 24px; }
.om-wrap .om-field { display: flex !important; flex-direction: column !important; gap: 6px !important; }
.om-wrap .om-field label { font-size: 14px !important; font-weight: 600 !important; color: var(--om-text) !important; }
.om-wrap .om-field input,
.om-wrap .om-field select,
.om-wrap .om-field textarea { padding: 10px 14px !important; border: 2px solid var(--om-border) !important; border-radius: 8px !important; font-size: 14px !important; outline: none !important; transition: border 0.2s !important; font-family: inherit !important; box-sizing: border-box !important; width: 100% !important; background: #fff !important; }
.om-wrap .om-field input:focus,
.om-wrap .om-field select:focus,
.om-wrap .om-field textarea:focus { border-color: var(--om-primary) !important; }

/* Upload */
.om-wrap .om-upload-area { border: 2px dashed var(--om-border); border-radius: 8px; padding: 24px; text-align: center; cursor: pointer; position: relative; transition: border 0.2s; }
.om-wrap .om-upload-area:hover { border-color: var(--om-primary); }
.om-wrap .om-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.om-wrap .om-preview-wrap { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.om-wrap .om-preview-wrap img { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; }

/* Single listing */
.om-wrap .om-single-wrap { max-width: 900px; margin: 0 auto; }
.om-wrap .om-back-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--om-primary); text-decoration: none; font-weight: 600; margin-bottom: 20px; font-size: 14px; }
.om-wrap .om-vip-banner { background: var(--om-vip); color: #fff; padding: 8px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 700; text-align: center; }
.om-wrap .om-images-wrap { margin-bottom: 24px; }
.om-wrap .om-main-image img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--om-radius); }
.om-wrap .om-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.om-wrap .om-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: border 0.2s; }
.om-wrap .om-thumb:hover { border-color: var(--om-primary); }
.om-wrap .om-no-image { background: #f0f0f0; height: 300px; border-radius: var(--om-radius); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.om-wrap .om-single-info { background: #fff; padding: 24px; border-radius: var(--om-radius); box-shadow: var(--om-shadow); }
.om-wrap .om-single-cat { font-size: 13px; color: var(--om-text-light); margin-bottom: 8px; }
.om-wrap .om-single-title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.om-wrap .om-single-price { font-size: 28px; font-weight: 700; color: var(--om-primary); margin-bottom: 16px; }
.om-wrap .om-single-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--om-text-light); margin-bottom: 20px; }
.om-wrap .om-single-desc h3 { margin-bottom: 8px; }
.om-wrap .om-single-desc p { line-height: 1.7; color: var(--om-text-light); }
.om-wrap .om-contact-box { background: #f9f9f9; padding: 16px; border-radius: 10px; margin-top: 20px; }
.om-wrap .om-contact-box h3 { margin-bottom: 8px; }
.om-wrap .om-seller { margin-bottom: 12px; font-weight: 600; }
.om-wrap .om-vip-promo { background: #fff9e6; border: 2px solid var(--om-vip); padding: 16px; border-radius: 10px; margin-top: 16px; text-align: center; }
.om-wrap .om-fav-btn { margin-top: 12px; }

/* Dashboard */
.om-wrap .om-dashboard { background: #fff; padding: 24px; border-radius: var(--om-radius); box-shadow: var(--om-shadow); }
.om-wrap .om-dash-header { display: flex !important; align-items: center !important; gap: 16px !important; margin-bottom: 32px !important; flex-wrap: wrap !important; }
.om-wrap .om-dash-avatar { font-size: 48px; }
.om-wrap .om-dash-header h2 { margin: 0; }
.om-wrap .om-dash-header p { margin: 0; color: var(--om-text-light); font-size: 14px; }
.om-wrap .om-dash-listings { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.om-wrap .om-dash-item { background: #f9f9f9; padding: 14px 16px; border-radius: 10px; display: flex !important; align-items: center !important; justify-content: space-between !important; flex-wrap: wrap !important; gap: 8px !important; border: 2px solid transparent; }
.om-wrap .om-dash-item.vip { border-color: var(--om-vip) !important; background: #fffbf0 !important; }
.om-wrap .om-dash-item-info { display: flex !important; align-items: center !important; gap: 12px !important; flex-wrap: wrap !important; font-size: 14px !important; }
.om-wrap .om-dash-item-actions { display: flex !important; gap: 6px !important; flex-wrap: wrap !important; }
.om-wrap .om-vip-tag { background: var(--om-vip) !important; color: #fff !important; padding: 2px 8px !important; border-radius: 6px !important; font-size: 11px !important; font-weight: 700 !important; }
.om-wrap .om-vip-exp { font-size: 12px; color: var(--om-vip); font-weight: 600; }

/* VIP */
.om-wrap .om-vip-wrap { max-width: 600px; margin: 0 auto; text-align: center; }
.om-wrap .om-vip-wrap h2 { font-size: 28px; margin-bottom: 8px; }
.om-wrap .om-vip-desc { color: var(--om-text-light); margin-bottom: 32px; }
.om-wrap .om-vip-plans { display: flex !important; gap: 20px !important; justify-content: center !important; flex-wrap: wrap !important; margin-bottom: 24px !important; }
.om-wrap .om-vip-plan { background: #fff; border: 2px solid var(--om-border); border-radius: var(--om-radius); padding: 28px; width: 200px; text-align: center; box-shadow: var(--om-shadow); transition: border 0.2s; }
.om-wrap .om-vip-plan:hover { border-color: var(--om-vip); }
.om-wrap .om-vip-plan-icon { font-size: 36px; margin-bottom: 8px; }
.om-wrap .om-vip-plan-name { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.om-wrap .om-vip-plan-price { font-size: 32px; font-weight: 800; color: var(--om-vip); margin-bottom: 4px; }
.om-wrap .om-vip-plan-days { color: var(--om-text-light); font-size: 13px; margin-bottom: 20px; }
.om-wrap .om-vip-note { font-size: 13px; color: var(--om-text-light); background: #f9f9f9; padding: 12px; border-radius: 8px; line-height: 1.6; }

/* Alerts */
.om-wrap .om-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.om-wrap .om-alert-success { background: #e8f5e9 !important; color: #2e7d32 !important; border: 1px solid #a5d6a7 !important; }
.om-wrap .om-alert-error { background: #ffebee !important; color: #c62828 !important; border: 1px solid #ef9a9a !important; }

/* Empty state */
.om-wrap .om-empty { text-align: center; padding: 48px; color: var(--om-text-light); font-size: 16px; }
.om-wrap .om-empty a { color: var(--om-primary); text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 600px) {
    .om-wrap .om-listings-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .om-wrap .om-vip-plans { flex-direction: column !important; align-items: center !important; }
    .om-wrap .om-single-title { font-size: 20px !important; }
    .om-wrap .om-single-price { font-size: 24px !important; }
}
@media (max-width: 400px) {
    .om-wrap .om-listings-grid { grid-template-columns: 1fr !important; }
}
