.appointment-widget-wrapper {
    background: transparent;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.appointment-widget {
    max-width: 1200px;
    margin: 0 auto;
}

.widget-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0 10px;
}

.widget-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #c8a97e 0%, #a88b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.widget-subtitle {
    font-size: 15px;
    color: #666;
}

@media (max-width: 768px) {
    .widget-header {
        padding: 16px 0 8px;
        margin-bottom: 16px;
    }

    .widget-title {
        font-size: 24px;
    }

    .widget-subtitle {
        font-size: 14px;
    }

    .appointment-widget-wrapper {
        padding: 0;
    }
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.category-tab {
    padding: 8px 20px;
    background: #fff;
    border: 2px solid #f0ece4;
    border-radius: 25px;
    color: #777;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-tab:hover {
    border-color: #c8a97e;
    color: #c8a97e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,169,126,0.15);
}

.category-tab.active {
    background: linear-gradient(135deg, rgba(200,169,126,0.12) 0%, rgba(200,169,126,0.06) 100%);
    border-color: transparent;
    color: #a88b4a;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(200,169,126,0.2);
}

@media (max-width: 480px) {
    .category-tabs {
        gap: 8px;
        margin-bottom: 16px;
    }

    .category-tab {
        padding: 6px 14px;
        font-size: 13px;
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

@media (max-width: 576px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0ece4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    border-color: #e8d9b8;
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.06);
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fafaf7 0%, #efe9dd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: #ccc;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    display: inline-block;
    padding: 4px 12px;
    background: #fdf8ee;
    color: #a88b4a;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    align-self: flex-start;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f3ef;
    margin-top: auto;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #d9534f;
    line-height: 1;
}

.price small {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
    font-weight: normal;
}

.duration {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
}

.duration svg {
    width: 14px;
    height: 14px;
    stroke: #bbb;
}

.card-action {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background-color: transparent;
    color: #333;
    border: 1.5px solid #333;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.card-action:hover {
    color: #c8a97e;
    border-color: #c8a97e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(200,169,126,0.2);
}

.card-action:active {
    transform: translateY(0);
    box-shadow: none;
    transition: all 0.1s ease;
}

.empty-state {
    text-align: center;
    padding: 70px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.empty-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #fafaf7 0%, #efe9dd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 44px;
    height: 44px;
    stroke: #bbb;
}

.empty-title {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.empty-desc {
    font-size: 14px;
    color: #aaa;
}

.widget-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f0ece4;
}

.widget-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #fff;
    border: 2px solid #f0ece4;
    border-radius: 25px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.widget-more-link:hover {
    border-color: #c8a97e;
    color: #c8a97e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200,169,126,0.15);
}

.widget-more-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s;
}

.widget-more-link:hover svg {
    transform: translateX(4px);
}

.widget-more-link.loading {
    pointer-events: none;
    opacity: 0.7;
}

.widget-more-link.loading svg {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.no-more-text {
    text-align: center;
    padding: 16px;
    color: #aaa;
    font-size: 13px;
}

@media (max-width: 768px) {
    .service-card {
        border-radius: 12px;
    }

    .card-image {
        height: 150px;
    }

    .card-body {
        padding: 16px;
    }

    .card-title {
        font-size: 15px;
    }

    .price {
        font-size: 19px;
    }

    .card-action {
        padding: 9px;
        font-size: 13px;
    }

    .empty-state {
        padding: 50px 20px;
    }

    .empty-icon {
        width: 72px;
        height: 72px;
    }

    .empty-icon svg {
        width: 36px;
        height: 36px;
    }

    .empty-title {
        font-size: 16px;
    }
}
