/* 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 */








/* 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; }
}

/* 1.1: scoped responsive marketplace design */
.om-wrap { --om-primary:#df167c; --om-primary-dark:#b91065; --om-border:#e8e5ec; --om-text:#27232d; --om-text-light:#706a78; --om-shadow:0 6px 24px #30203b08; --om-radius:18px; padding-top:20px; line-height:1.6; }
.om-wrap *, .om-wrap *::before, .om-wrap *::after { box-sizing:border-box; }
.om-wrap [hidden] { display:none!important; }
.om-wrap button,.om-wrap input,.om-wrap select { font-family:inherit; }
.om-wrap .om-header { margin-bottom:22px; padding:0 0 20px; }
.om-wrap .om-header-inner { padding:0; }
.om-wrap .om-btn { min-height:44px; justify-content:center; border-radius:11px!important; line-height:1.4; }
.om-wrap .om-btn:disabled { opacity:.6; cursor:wait!important; }
.om-wrap :is(button,a,input,select,textarea):focus-visible { outline:3px solid #df167c65!important; outline-offset:3px; }
.om-wrap .om-intro { padding:26px 30px; background:linear-gradient(115deg,#fff1f7,#faf8fc); border:1px solid #f2e5ed; border-radius:20px; margin-bottom:22px; }
.om-wrap .om-eyebrow { font-size:12px; font-weight:700; color:var(--om-primary); }
.om-wrap .om-intro h2 { font-size:clamp(23px,3vw,32px); letter-spacing:-.5px; margin:5px 0 8px; line-height:1.4; color:var(--om-text); }
.om-wrap .om-intro p { margin:0; font-size:14px; color:var(--om-text-light); }
.om-wrap .om-search-input { min-width:0; height:52px; border-width:1px!important; border-radius:12px!important; }




.om-wrap .om-stats-bar { display:inline-block; margin-right:16px; }
.om-wrap .om-reset { background:transparent; border:0; color:var(--om-primary); font-size:12px; padding:8px 0; margin-bottom:16px; cursor:pointer; text-decoration:underline; }
.om-wrap .om-listings-grid { grid-template-columns:repeat(auto-fill,minmax(240px,1fr))!important; gap:20px!important; }
.om-wrap .om-card { border:1px solid var(--om-border); box-shadow:var(--om-shadow); min-width:0; }
.om-wrap .om-card-image-link { background:#f6f4f7; overflow:hidden; }
.om-wrap .om-card-img { height:auto!important; aspect-ratio:4/3; transition:transform .25s; }
.om-wrap .om-card:hover .om-card-img { transform:scale(1.025); }
.om-wrap .om-card-body { padding:17px!important; }
.om-wrap .om-card-title { font-size:15px!important; min-height:42px; overflow-wrap:anywhere; }
.om-wrap .om-card-cat { margin-bottom:8px!important; }
.om-wrap .om-card-price { color:var(--om-text)!important; font-size:21px!important; }
.om-wrap .om-card-footer { flex-wrap:wrap; gap:5px; border-top:1px solid #f0edf2; padding-top:10px; }
.om-wrap .om-empty { grid-column:1/-1; border:1px dashed #dfd8e3; border-radius:18px; background:#fcfafc; padding:64px 20px; }
.om-wrap .om-form-box { max-width:740px; padding:32px; border:1px solid var(--om-border); }
.om-wrap .om-form-box h2 { font-size:24px; }
.om-wrap .om-field input,.om-wrap .om-field select,.om-wrap .om-field textarea { min-height:46px; border-width:1px!important; border-radius:10px!important; font-size:16px!important; }
.om-wrap .om-upload-area { padding:34px 18px; background:#fffbfd; border-color:#eab7d1; border-radius:14px; }
.om-wrap .om-upload-area input[type=file] { height:100%; margin:0; }
.om-wrap .om-upload-area:focus-within { outline:3px solid #df167c65; }
.om-wrap .om-upload-status { color:var(--om-text-light); font-size:12px; margin:8px 0; }
.om-wrap .om-preview-wrap img { width:96px; height:96px; border:1px solid var(--om-border); border-radius:10px; }
.om-wrap .om-main-image img { object-fit:contain; background:#f7f5f8; }
.om-wrap .om-single-info { border:1px solid var(--om-border); }
.om-wrap .om-single-title { overflow-wrap:anywhere; }
@media(max-width:600px) {
 .om-wrap { padding:12px 10px 30px; }
 .om-wrap .om-header-actions { width:100%; }
 .om-wrap .om-header-actions .om-btn:first-child { width:100%; }
 .om-wrap .om-header-actions .om-btn { flex:1; font-size:12px!important; }
 .om-wrap .om-intro { padding:22px 18px; }
 
 
 .om-wrap .om-listings-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
 .om-wrap .om-card-body { padding:11px!important; }
 .om-wrap .om-card-title { font-size:13px!important; }
 .om-wrap .om-card-price { font-size:17px!important; }
 .om-wrap .om-card-img-placeholder { height:130px!important; }
 .om-wrap .om-form-box,.om-wrap .om-auth-box,.om-wrap .om-dashboard { padding:20px 16px; }
}
@media(max-width:360px) { .om-wrap .om-listings-grid { grid-template-columns:1fr!important; } }
@media(prefers-reduced-motion:reduce) { .om-wrap * { transition:none!important; animation:none!important; } }

.om-wrap .om-existing-images { display:flex; gap:12px; flex-wrap:wrap; }
.om-wrap .om-existing-image { width:150px; padding:10px; border:1px solid var(--om-border); border-radius:12px; }
.om-wrap .om-existing-image img { width:100%; height:110px; object-fit:cover; border-radius:8px; }
.om-wrap .om-existing-image label { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:12px!important; }
.om-wrap .om-existing-image input { width:18px!important; min-height:18px!important; height:18px!important; }

/* 1.3.1: evenly sized category tiles, scoped to the marketplace. */









/* Category spacing: margins keep a real gutter even when a theme resets gap. */
.om-wrap .om-mp-cats-row {
 display: grid !important;
 grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
 grid-auto-rows: 1fr;
 gap: 0 !important;
 row-gap: 0 !important;
 column-gap: 0 !important;
 width: 100% !important;
 height: auto !important;
 max-height: none !important;
 overflow: visible !important;
 margin: 0 0 20px !important;
 padding: 8px !important;
 border: 1px solid #eee7ef;
 border-radius: 18px;
 background: #faf8fb;
 align-items: stretch !important;
 cursor: default !important;
 box-sizing: border-box !important;
}
.om-wrap .om-mp-cats-row > .om-cat-pill {
 display: flex !important;
 width: calc(100% - 12px) !important;
 min-width: 0 !important;
 height: auto !important;
 min-height: 56px !important;
 margin: 6px !important;
 padding: 12px 10px !important;
 box-sizing: border-box !important;
 align-self: stretch !important;
 align-items: center !important;
 justify-content: center !important;
 border: 1px solid #e8e1e9 !important;
 border-radius: 12px !important;
 background: #fff !important;
 color: var(--om-text) !important;
 font-family: inherit !important;
 font-size: 12px !important;
 font-weight: 500 !important;
 line-height: 1.5 !important;
 white-space: normal !important;
 text-align: center !important;
 text-decoration: none !important;
 cursor: pointer !important;
 box-shadow: 0 2px 5px #30203b04;
 transition: background .2s, border-color .2s !important;
}
.om-wrap .om-mp-cats-row > .om-cat-pill[data-cat="0"] { grid-column: span 2; font-weight: 700 !important; }
.om-wrap .om-mp-cats-row .om-cat-icon { flex: 0 0 auto; font-size: 18px !important; line-height: 1 !important; margin-right: 7px !important; }
.om-wrap .om-mp-cats-row .om-cat-pill span:last-child { min-width: 0; overflow-wrap: anywhere; }
.om-wrap .om-mp-cats-row > .om-cat-pill:hover { background: #fff0f7 !important; border-color: #efafd0 !important; color: #a6115d !important; }
.om-wrap .om-mp-cats-row > .om-cat-pill.active { background: var(--om-primary) !important; border-color: var(--om-primary) !important; color: #fff !important; }
@media (max-width: 1000px) {
 .om-wrap .om-mp-cats-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 600px) {
 .om-wrap .om-mp-cats-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding: 5px !important; }
 .om-wrap .om-mp-cats-row > .om-cat-pill { width: calc(100% - 10px) !important; margin: 5px !important; min-height: 54px !important; padding: 10px 8px !important; }
}
@media (prefers-reduced-motion: reduce) {
 .om-wrap .om-mp-cats-row > .om-cat-pill { transition: none !important; }
}
