/* XBeauty Price System - Frontend Styles */

:root {
    --xb-orange: #FF6B35;
    --xb-orange-light: #FF8C61;
    --xb-orange-dark: #E85A24;
    --xb-beige: #f3e6d7;
    --xb-beige-light: #fff7ee;
    --xb-brown: #6e5233;
    --xb-gray: #666;
    --xb-border: #ece8e1;
    --xb-white: #ffffff;
    --xb-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --xb-shadow-hover: 0 4px 16px rgba(255,107,53,0.15);
}

.xbeauty-price-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.xb-price-hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--xb-beige-light) 0%, var(--xb-beige) 100%);
    border-radius: 16px;
    margin-bottom: 40px;
}

.xb-hero-title {
    font-size: 3rem;
    color: var(--xb-brown);
    margin: 0 0 16px 0;
    font-weight: 700;
}

.xb-hero-subtitle {
    font-size: 1.25rem;
    color: var(--xb-gray);
    margin: 0;
}

/* Filters */
.xb-price-filters {
    background: var(--xb-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--xb-shadow);
    margin-bottom: 40px;
}

.xb-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.xb-filter-group label {
    display: block;
    font-weight: 600;
    color: var(--xb-brown);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.xb-filter-input,
.xb-filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--xb-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.xb-filter-input:focus,
.xb-filter-select:focus {
    outline: none;
    border-color: var(--xb-orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.xb-btn-reset {
    width: 100%;
    padding: 12px 24px;
    background: var(--xb-gray);
    color: var(--xb-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xb-btn-reset:hover {
    background: var(--xb-brown);
    transform: translateY(-2px);
}

/* Promo Sections */
.xb-promo-section {
    margin-bottom: 60px;
}

.xb-section-title {
    font-size: 2rem;
    color: var(--xb-brown);
    margin: 0 0 30px 0;
    font-weight: 700;
}

.xb-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.xb-promo-card {
    position: relative;
    background: var(--xb-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--xb-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.xb-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xb-shadow-hover);
    border-left-color: var(--xb-orange);
}

.xb-promo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--xb-orange);
    color: var(--xb-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.xb-badge-promo {
    background: var(--xb-orange-dark);
}

.xb-promo-title {
    font-size: 1.25rem;
    color: var(--xb-brown);
    margin: 0 0 12px 0;
    font-weight: 600;
}

.xb-promo-desc {
    color: var(--xb-gray);
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.xb-promo-prices {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.xb-old-price {
    color: var(--xb-gray);
    text-decoration: line-through;
    font-size: 1rem;
}

.xb-new-price {
    color: var(--xb-orange);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Services Section */
.xb-services-section {
    margin-top: 60px;
}

.xb-price-category {
    margin-bottom: 60px;
}

.xb-category-title {
    font-size: 1.75rem;
    color: var(--xb-brown);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--xb-orange);
    font-weight: 700;
}

.xb-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.xb-service-card {
    background: var(--xb-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--xb-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.xb-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--xb-shadow-hover);
    border-left-color: var(--xb-orange);
}

.xb-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.xb-service-title {
    font-size: 1.25rem;
    color: var(--xb-brown);
    margin: 0;
    font-weight: 600;
    flex: 1;
}

.xb-master-badge {
    background: var(--xb-beige);
    color: var(--xb-brown);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 12px;
}

.xb-top-master {
    background: var(--xb-orange-light);
    color: var(--xb-white);
}

.xb-service-description {
    color: var(--xb-gray);
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.xb-service-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.xb-meta-item {
    font-size: 0.9rem;
    color: var(--xb-gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.xb-service-price {
    color: var(--xb-orange);
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .xb-hero-title {
        font-size: 2rem;
    }
    
    .xb-hero-subtitle {
        font-size: 1rem;
    }
    
    .xb-filters-row {
        grid-template-columns: 1fr;
    }
    
    .xb-promo-grid,
    .xb-services-grid {
        grid-template-columns: 1fr;
    }
    
    .xb-service-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .xb-master-badge {
        margin-left: 0;
        margin-top: 8px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .xb-promo-grid,
    .xb-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.xb-service-card,
.xb-promo-card {
    animation: fadeInUp 0.5s ease-out;
}

.xb-price-category:nth-child(1) .xb-service-card {
    animation-delay: 0.1s;
}

.xb-price-category:nth-child(2) .xb-service-card {
    animation-delay: 0.2s;
}

.xb-price-category:nth-child(3) .xb-service-card {
    animation-delay: 0.3s;
}
