/* =================================================================
   Base Styles & Reset
   ================================================================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #debe62;
    --primary-dark: #c9a840;
    --primary-light: #f0e5c9;
    --secondary-color: #073035;
    --secondary-dark: #051f22;
    --text-dark: #333333;
    --text-light: #666666;
    --text-gray: #999999;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================================================
   Page Header
   ================================================================= */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(222,190,98,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 15px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* =================================================================
   Filters Section
   ================================================================= */
.filters-section {
    background-color: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Search Container */
.search-container {
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 50px;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    font-size: 16px;
    background-color: var(--white);
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(222, 190, 98, 0.1);
}

.search-clear {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--primary-color);
}

/* Categories Filter */
.categories-filter {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    margin-bottom: 25px;
}

.categories-wrapper {
    display: flex;
    gap: 12px;
    padding: 5px 0;
    min-width: min-content;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
}

.category-btn:hover {
    border-color: var(--primary-color);
    background-color: rgba(222, 190, 98, 0.1);
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(222, 190, 98, 0.3);
}

.category-icon {
    font-size: 18px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-light);
}

.results-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.sort-select {
    padding: 10px 35px 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: left 12px center;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* =================================================================
   Services Table Section
   ================================================================= */
.services-section {
    padding: 60px 0 80px;
    background-color: var(--white);
    min-height: 500px;
}

/* Services Table Wrapper */
.services-table-wrapper {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Services Table */
.services-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.services-table thead {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
}

.services-table thead th {
    padding: 20px 15px;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid var(--primary-color);
}

.services-table thead th:first-child {
    text-align: center;
    width: 60px;
}

.services-table thead .col-category {
    width: 150px;
}

.services-table thead .col-price {
    width: 90px;
    text-align: center;
}

.services-table thead .col-action {
    width: 150px;
    text-align: center;
}

/* Table Body */
.services-table tbody tr.service-row {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.services-table tbody tr.service-row:hover {
    background-color: rgba(222, 190, 98, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.services-table tbody tr.service-row.featured-row {
    background-color: rgba(222, 190, 98, 0.03);
}

.services-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

/* Column: Number */
.col-number {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-gray);
    width: 60px;
}

/* Column: Name */
.service-name-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-row:hover .service-name {
    color: var(--primary-color);
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Inline Badges */
.badge-inline {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

.badge-inline.badge-featured {
    background: linear-gradient(135deg, #debe62 0%, #c9a840 100%);
    color: var(--white);
}

.badge-inline.badge-new {
    background: linear-gradient(135deg, #00b4d8 0%, #0096b8 100%);
    color: var(--white);
}

/* Column: Category */
.category-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.category-badge.dental {
    background-color: rgba(0, 180, 216, 0.1);
    color: #0096b8;
    border: 2px solid rgba(0, 180, 216, 0.2);
}

.category-badge.packages {
    background-color: rgba(222, 190, 98, 0.1);
    color: var(--primary-dark);
    border: 2px solid rgba(222, 190, 98, 0.2);
}

/* Column: Price */
.col-price {
    text-align: center;
}

.price-value {
    display: block;
    font-size: 14px;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1.2;
}

.price-value.highlight {
    font-size: 28px;
    color: var(--secondary-color);
}

.price-free {
    display: block;
    font-size: 15px;
    font-weight: 400;
    background: linear-gradient(135deg, #00b4d8 0%, #0096b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-note {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* Column: Action */
.col-action {
    text-align: center;
}

.btn-book-table {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    white-space: nowrap;
}

.btn-book-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 190, 98, 0.4);
}

/* No Results Table */
.no-results-table {
    text-align: center;
    padding: 80px 20px;
}

.no-results-table svg {
    width: 100px;
    height: 100px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.no-results-table h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin: 0 0 15px;
}

.no-results-table p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0 0 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-reset-filters {
    padding: 14px 32px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-reset-filters:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 190, 98, 0.4);
}

/* =================================================================
   CTA Section
   ================================================================= */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 20px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin: 0 0 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn-cta-primary {
    background-color: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
}

.btn-cta-primary:hover {
    background-color: #20BA5A;
    border-color: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-cta-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-cta-secondary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(222, 190, 98, 0.4);
}

/* =================================================================
   Responsive Design
   ================================================================= */
@media (max-width: 1024px) {
    .page-title {
        font-size: 40px;
    }

    .services-table thead .col-category {
        width: 130px;
    }

    .services-table thead .col-price {
        width: 150px;
    }

    .services-table thead .col-action {
        width: 130px;
    }

    .service-name {
        font-size: 16px;
    }

    .service-desc {
        font-size: 13px;
    }

    .price-value {
        font-size: 20px;
    }

    .btn-book-table {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .filters-section {
        padding: 20px 0;
    }

    /* Mobile Table Design */
    .services-table {
        display: block;
    }

    .services-table thead {
        display: none;
    }

    .services-table tbody {
        display: block;
    }

    .services-table tbody tr.service-row {
        display: block;
        margin-bottom: 20px;
        border: 2px solid var(--border-color);
        border-radius: 12px;
        padding: 20px;
    }

    .services-table tbody tr.service-row:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .services-table tbody td {
        display: block;
        padding: 8px 0;
        border: none;
        text-align: right !important;
    }

    .col-number {
        position: absolute;
        top: 15px;
        left: 15px;
        background: var(--primary-color);
        color: var(--white);
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .col-name {
        margin-bottom: 10px;
    }

    .service-name {
        font-size: 18px;
    }

    .service-desc {
        font-size: 14px;
    }

    .col-category {
        margin-bottom: 10px;
    }

    .category-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .col-price {
        margin-bottom: 15px;
        text-align: right !important;
    }

    .price-value {
        font-size: 26px;
    }

    .col-action {
        text-align: right !important;
    }

    .btn-book-table {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 26px;
    }

    .page-subtitle {
        font-size: 14px;
    }

    .search-input {
        font-size: 14px;
        padding: 12px 40px 12px 40px;
    }

    .service-name {
        font-size: 16px;
    }

    .service-desc {
        font-size: 13px;
    }

    .price-value {
        font-size: 22px;
    }

    .price-free {
        font-size: 22px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-text {
        font-size: 15px;
    }
}


/* =================================================================
   تحديثات CSS للتصنيفات الجديدة
   أضف هذا الكود في نهاية ملف services.css
   ================================================================= */

/* تصنيف ليزر رجال */
.category-badge.laser-men {
    background-color: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 2px solid rgba(59, 130, 246, 0.2);
}

/* تصنيف ليزر نساء */
.category-badge.laser-women {
    background-color: rgba(236, 72, 153, 0.1);
    color: #db2777;
    border: 2px solid rgba(236, 72, 153, 0.2);
}

/* تصنيف بوتكس */
.category-badge.botox {
    background-color: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border: 2px solid rgba(168, 85, 247, 0.2);
}

/* تصنيف فيلر */
.category-badge.filler {
    background-color: rgba(244, 114, 182, 0.1);
    color: #ec4899;
    border: 2px solid rgba(244, 114, 182, 0.2);
}

/* تصنيف إبر النضارة */
.category-badge.brightening {
    background-color: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
    border: 2px solid rgba(251, 191, 36, 0.2);
}

/* تصنيف إزالة التاتو */
.category-badge.tattoo {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 2px solid rgba(239, 68, 68, 0.2);
}

/* تصنيف فراكشنال */
.category-badge.fractional {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 2px solid rgba(16, 185, 129, 0.2);
}

/* تحسينات إضافية للجدول */
.services-table tbody tr.service-row.featured-row {
    background-color: rgba(222, 190, 98, 0.03);
    border-right: 4px solid var(--primary-color);
}

.services-table tbody tr.service-row.premium-row {
    background: linear-gradient(90deg, rgba(222, 190, 98, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Badge للخدمات الجديدة */
.badge-inline.badge-premium {
    background: linear-gradient(135deg, #c9a840 0%, #debe62 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(201, 168, 64, 0.3);
}

/* تحسين عرض الأسعار */
.price-value.premium {
    background: linear-gradient(135deg, #debe62 0%, #c9a840 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}