/* ==========================================================================
   Luxe Glo Component Styles
   ========================================================================== */

/* Buttons */
.btn {
    background: var(--text-main);
    color: var(--surface);
    padding: 1.15rem 2.25rem;
    border: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    min-height: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(54, 45, 38, 0.08);
}

.btn:hover:not(:disabled) {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 130, 96, 0.25);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--text-main);
    background: var(--surface);
    box-shadow: var(--shadow-subtle);
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
    min-height: 36px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-muted);
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: var(--accent);
}

.tab-btn.active {
    background: var(--text-main);
    color: var(--surface);
    border-color: var(--text-main);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.form-input {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 1rem;
    padding: 0.9rem 1.1rem;
    font-family: var(--font-sans);
    transition: var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(163, 130, 96, 0.12);
}

textarea.form-input {
    min-height: 110px;
    resize: vertical;
    line-height: 1.6;
}

/* Selectable Cards Indicator */
.selectable-card {
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.selectable-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--text-main);
    color: var(--surface);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Service Cards */
.service-card {
    position: relative;
    min-height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 2rem 2.25rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    background: var(--surface);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.service-card.selected {
    border-color: var(--text-main);
    box-shadow: 0 0 0 2px var(--text-main), var(--shadow-hover);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-bg {
    transform: scale(1.04);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30,22,17,0.88) 0%, rgba(30,22,17,0.45) 50%, rgba(30,22,17,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.service-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.service-card-content .service-name {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    margin-bottom: 0.3rem;
    color: #FFFFFF;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.service-card-content .service-meta {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.service-price-pill {
    background: #FFFFFF;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Stylist Avatar Cards */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.avatar-card {
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
    padding: 2.25rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    position: relative;
}

.avatar-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.avatar-card.selected {
    border-color: var(--text-main);
    background: var(--surface-hover);
    box-shadow: 0 0 0 2px var(--text-main), var(--shadow-subtle);
}

.avatar-img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem auto;
    display: block;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.avatar-card:hover .avatar-img {
    transform: scale(1.05);
}

.avatar-name {
    font-size: 1.15rem;
    font-family: var(--font-sans);
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-main);
}

.avatar-role {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.5rem;
}

.staff-payment-badge {
    font-size: 0.7rem;
    background: var(--surface-hover);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Time Slots */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.time-slot {
    padding: 1rem 0.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-pill);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.time-slot.selected {
    background: var(--text-main);
    color: var(--surface);
    border-color: var(--text-main);
    box-shadow: var(--shadow-hover);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
    background: var(--bg);
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    background: var(--surface-hover);
}

.product-price-circle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: #FFFFFF;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 5;
    border: 1px solid var(--border);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--accent);
}

/* Image Upload Dropzones */
.image-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--surface-hover);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

.image-upload-wrapper:hover {
    border-color: var(--accent);
    background: var(--surface);
}

.image-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.upload-icon {
    font-size: 2.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.image-upload-wrapper:hover .upload-icon {
    transform: translateY(-4px);
}

.upload-text {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.upload-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.image-upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30,22,17,0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 6;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.image-upload-wrapper.has-image:hover .upload-overlay {
    opacity: 1;
}

.upload-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    padding: 1rem;
}

.upload-avatar .image-upload-preview {
    border-radius: 50%;
}

/* Controls Bar */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Category Cards & Service Dropdown Booking Layout
   ========================================================================== */

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
    .category-card-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-card.selected {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(163, 130, 96, 0.06) 100%);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-hover);
}

.category-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.category-card-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0;
}

.category-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--surface-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.category-card.selected .cat-pill.cat-pill-count {
    background: rgba(163, 130, 96, 0.15);
    color: var(--accent);
    border-color: rgba(163, 130, 96, 0.3);
}

.category-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(163, 130, 96, 0.3);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.category-dropdown-wrap {
    margin-top: 1.25rem;
}

.category-dropdown-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.category-service-select {
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 0.95rem 1.15rem;
    padding-right: 2.75rem;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D7168' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.15rem center;
    background-size: 1.1em;
}

.category-card.selected .category-service-select {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.category-service-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(163, 130, 96, 0.15);
}

.category-service-select option {
    background: var(--surface);
    color: var(--text-main);
    padding: 0.6rem;
}

.selected-service-summary {
    margin-top: 1.25rem;
    padding: 1.1rem 1.35rem;
    background: rgba(163, 130, 96, 0.08);
    border: 1px solid rgba(163, 130, 96, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: popIn 0.3s ease;
}

.selected-service-summary-info {
    flex: 1;
    min-width: 0;
}

.selected-service-summary-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.selected-service-summary-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-service-summary-price {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    background: var(--surface);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    white-space: nowrap;
}

.booking-active-summary-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-subtle);
    flex-wrap: wrap;
}

.booking-active-summary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.booking-active-summary-value {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0.15rem;
}

