.main-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 25% 50% 25%;
    }
}

.sidebar, .service-section, .right-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 20px;
}

.subcategory-list {
    display: flex
;
    /* grid-template-columns: repeat(3, 1fr); */
    column-gap:8px;
    flex-wrap: wrap;
}

.subcategory-item {
    display: flex;
    width:80px;
    flex-direction: column;
    align-items: center;
    border: none;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.subcategory-item:hover {
    background: #f8f8f8;
    border-color: #6366f1;
}

.subcategory-icon {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 5px;
}

.subcategory-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.service-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.service-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.service-details h4 {
    font-size: 16px;
    font-weight: 600;
}

.service-details p {
    color: #666;
    font-size: 13px;
    margin: 3px 0;
}

.service-rating {
    color: #facc15;
    font-size: 14px;
}

.empty-star {
    color: #ccc;
}

.rating-text, .review-count {
    color: #777;
    font-size: 12px;
    margin-left: 4px;
}

.service-price {
    display: block;
    font-weight: bold;
    margin-top: 4px;
}

.btn-add {
background: transparent;
    color: #8342fc;
    padding: 5px 14px;
    border: 1px solid #8342fc;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.btn-add:hover {
background: #8342fc;
    color: #fff;
}

.show-more-btn {
    background: none;
    color: #2563eb;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 8px;
}

.card-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    padding: 16px;
    margin-bottom: 16px;
}

.remove-btn {
    border: 1px solid #ddd;
    background: transparent;
}

.remove-btn:hover {
    background: red;
    color: #fff;
}

#cartList {
    list-style: none;
    padding: 0;
}

#cartList li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
    font-size: 14px;
}
.sub-cat-title {
    font-size: 1.5rem;
}

.sub-cat-title span {
    color: #6166ff;
    text-transform: uppercase;
    margin-top: 8px;
    display: block;
    font-size: 1rem;
}

.service-section #serviceTitle {
    font-size: 28px;
    margin-bottom: 30px;
}

.right-sidebar .card-box h3 {
    font-size: 24px;
}
.subcategory-item span {
    font-size: 12px;
    line-height:1;
}

#promiseList {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

#promiseList > li {
    padding: 10px;
    display: flex;
    align-items: center;
}


#promiseList > li:before {
    content: "\F269";
    font-family: bootstrap-icons !important;
    line-height: 1;
    margin-right: 10px;
    font-size: 20px;
}

.service-details > div {
    width: calc(100% - 100px);
}
@media(max-width:991px){
    .main-wrapper {
    padding-top: 74px;
}
}

@media(max-width:767px){

.service-details {
    width: 100%;
    flex-direction: column;
    position: relative;
}

.service-image {
    width: 100px;
    height: 100px;
    box-shadow: 0 0 5px #00000087;
    margin-bottom: 20px;
}

.service-details .btn-add {
    margin-top: 11px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.service-details > div {
    width: 100%;
}
.service-section #serviceTitle {
    font-size: 26px;
}

}

@media(max-width:480px){
   .service-card {
    flex-wrap: wrap;
    flex-direction: column;
} 
}
