/* ============================================
   LM EVENTS - SERVICES BROWSING
   Location: assets/css/services/browse.css
   ============================================ */

.services-browse-page {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f5f6fa;
    padding-top: 76px;   /* push content below fixed navbar */
    min-height: 100vh;
}

/* ---------- Breadcrumb ---------- */
.browse-breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f6;
    font-size: 13px;
    position: relative;   /* stay in flow, below navbar */
    z-index: 1;
}

.browse-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.browse-breadcrumb a {
    color: #556070;
    text-decoration: none;
    transition: color 0.2s;
}

.browse-breadcrumb a:hover { color: #f39c12; }
.browse-breadcrumb i { color: #c5cdd8; font-size: 10px; }
.browse-breadcrumb span { color: #0f3460; font-weight: 600; }

/* ---------- Container ---------- */
.browse-container {
    padding: 32px 12px 60px;
    position: relative;
    z-index: 0;
}

.browse-title {
    color: #0f3460;
    font-weight: 800;
    font-size: 24px;
    margin-bottom: 4px;
    position: relative;
    z-index: 0;
}

.browse-subtitle {
    color: #7a8898;
    font-size: 13.5px;
    margin-bottom: 24px;
}

/* ---------- Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e0e5ec;
}

.empty-state i {
    font-size: 56px;
    color: #c5cdd8;
    margin-bottom: 16px;
    display: block;
}

.empty-state h5 {
    color: #0f3460;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-state p {
    color: #8898aa;
    font-size: 14px;
    margin-bottom: 12px;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.category-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 22px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef1f6;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #f39c12;
    color: inherit;
}

.category-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8e6, #fffbf0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #f39c12;
    margin-bottom: 14px;
    border: 2px solid rgba(243, 156, 18, 0.15);
    transition: all 0.25s ease;
}

.category-card:hover .category-icon-wrap {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    border-color: #f39c12;
    transform: scale(1.05);
}

.category-card h5 {
    font-size: 17px;
    font-weight: 700;
    color: #0f3460;
    margin-bottom: 6px;
}

.category-card p {
    font-size: 12.5px;
    color: #7a8898;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count {
    background: rgba(15, 52, 96, 0.06);
    color: #0f3460;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.category-count i { color: #f39c12; }

/* ============================================
   ITEMS GRID
   ============================================ */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.item-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eef1f6;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #f39c12;
    color: inherit;
}

.item-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.item-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.item-card:hover .item-image-wrap img {
    transform: scale(1.05);
}

.item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5cdd8;
    font-size: 40px;
}

.item-flag {
    position: absolute;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    z-index: 2;
}

.discount-flag {
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: #fff;
}

.featured-flag {
    top: 10px;
    right: 10px;
    background: #f39c12;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
}

.item-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f3460;
    margin-bottom: 8px;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.item-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.item-price {
    font-size: 16px;
    font-weight: 800;
    color: #e67e22;
}

.item-old-price {
    font-size: 11.5px;
    color: #a0a8b3;
    text-decoration: line-through;
}

.item-variation-badge {
    font-size: 10.5px;
    color: #8898aa;
    background: #f5f6fa;
    padding: 3px 9px;
    border-radius: 12px;
    align-self: flex-start;
    margin-top: auto;
}

.item-variation-badge i { color: #f39c12; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .services-browse-page { padding-top: 60px; }
    .browse-container { padding: 20px 10px 40px; }
    .browse-title { font-size: 20px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card { padding: 18px 14px; }
    .category-icon-wrap { width: 58px; height: 58px; font-size: 24px; margin-bottom: 10px; }
    .category-card h5 { font-size: 15px; }
    .category-card p { font-size: 11.5px; }
    .item-title { font-size: 12.5px; }
    .item-price { font-size: 14px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr; }
    .items-grid { grid-template-columns: 1fr 1fr; }
    .item-flag { font-size: 9px; padding: 3px 7px; }
    .item-variation-badge { font-size: 9.5px; }
}
/* ---------- Custom package call-to-action ---------- */
.custom-cta { display:flex; align-items:center; gap:16px; background:linear-gradient(135deg,#0f3460,#1b4f8a); color:#fff; border-radius:14px; padding:16px 20px; margin:0 0 22px; text-decoration:none; box-shadow:0 4px 16px rgba(15,52,96,.18); transition:transform .15s; }
.custom-cta:hover { transform:translateY(-2px); color:#fff; }
.custom-cta-icon { width:46px; height:46px; border-radius:50%; background:#f39c12; display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.custom-cta-text { flex:1; display:flex; flex-direction:column; gap:2px; }
.custom-cta-text small { opacity:.85; font-size:13px; }
.custom-cta-btn { background:#f39c12; color:#1b1b1b; font-weight:700; border-radius:999px; padding:8px 18px; white-space:nowrap; font-size:14px; }
@media (max-width:640px){ .custom-cta{flex-wrap:wrap;} .custom-cta-btn{width:100%; text-align:center;} }
