:root {
    --bg-color: #000000;
    --secondary-bg-color: #1C1C1E;
    --primary-text-color: #FFFFFF;
    --secondary-text-color: #8A8A8E;
    --accent-color: #007AFF;
    --main-font: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--main-font);
    color: var(--primary-text-color);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.app-container {
    max-width: 430px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-color);
}

.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out;
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.clickable:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

#catalog-screen {
    padding: 20px 15px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.app-header h1 {
    font-size: 22px;
    font-weight: 800;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
}

.search-bar span {
    margin: 0 5px;
    color: var(--secondary-text-color);
}

.search-bar input {
    flex-grow: 1;
    background: none;
    border: none;
    color: var(--primary-text-color);
    font-size: 16px;
    font-family: var(--main-font);
}

.search-bar input:focus {
    outline: none;
}

.search-bar .star {
    color: #FFCC00;
    cursor: pointer;
}

.main-banner {
    margin-bottom: 25px;
    height: 180px;
}

.main-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.category-section {
    margin-bottom: 25px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-section h2 {
    font-size: 20px;
    font-weight: 700;
}

.category-header a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.popular-card {
    background-color: var(--secondary-bg-color);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
}

.popular-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.popular-card p {
    padding: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-list {
    background-color: var(--secondary-bg-color);
    border-radius: 12px;
    overflow: hidden;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 15px;
    background-color: #333;
}

.service-item .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-item .info {
    flex-grow: 1;
}

.service-item h3 {
    font-size: 16px;
    font-weight: 600;
}

.service-item .discount {
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 5px;
    margin-left: 8px;
}

.service-item .arrow {
    color: var(--secondary-text-color);
    font-size: 20px;
    font-weight: bold;
}

.page-header {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    width: 100%;
    padding: 20px 15px 10px;
}

.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 15px;
}

.service-title,
.cart-title,
.category-title {
    font-size: 24px;
    font-weight: 800;
    text-align: center;
}

.back-button {
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content-body,
.cart-content-body {
    padding-bottom: 100px;
}

.service-content-body h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.service-content-body p,
.service-content-body li {
    font-size: 16px;
    line-height: 1.6;
    color: #EAEAEB;
}

.service-content-body ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: '✓ ';
}

.service-footer,
.cart-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-bg-color);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}

.price-block span {
    font-size: 18px;
    font-weight: 700;
}

.price-block .service-price {
    font-size: 22px;
}

.order-button,
.add-to-cart-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.cart-button svg {
    width: 28px;
    height: 28px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    font-weight: 700;
    display: none;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-color);
}

.cart-items-list {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-bg-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.cart-item-info h4 {
    font-size: 16px;
    margin: 0 0 5px;
}

.cart-item-info p {
    color: var(--secondary-text-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn,
.remove-btn {
    background-color: #333;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.item-quantity {
    font-size: 16px;
    font-weight: 600;
    padding: 0 5px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-form h4,
.person-type-form h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.contact-form input {
    width: 100%;
    background-color: var(--secondary-bg-color);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    color: white;
    font-family: var(--main-font);
}

#checkout-button.disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

.cart-footer {
    justify-content: center;
}

.hidden {
    display: none !important;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.person-type-form {
    margin-bottom: 20px;
}

.person-type-options {
    display: flex;
    gap: 10px;
}

.person-type-option {
    font-family: var(--main-font);
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    background-color: var(--secondary-bg-color);
    color: var(--primary-text-color);
    font-size: 14px;
    font-weight: 600;
}

.person-type-option.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

#category-screen .page-header {
    padding-right: 15px;
    padding-left: 15px;
}

.category-list .service-item {
    border-radius: 12px;
    margin-bottom: 10px;
    background-color: var(--secondary-bg-color);
    border: none;
}

.coming-soon-list .service-item {
    cursor: default;
    opacity: 0.6;
}

.coming-soon-list .service-item .arrow {
    display: none;
}

.coming-soon-list .service-item .info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.soon-badge {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    background-color: #333;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    text-transform: lowercase;
}
