/* Zen Cennik - Frontend Styles */
/* Matches Zen Beauty Clinique design: warm beige tones, elegant typography */

.zen-cennik {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: inherit;
}

/* Search */
.zen-cennik__search {
    margin-bottom: 30px;
    position: relative;
}

.zen-cennik__search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    color: #8B6F4E;
    opacity: 0.5;
}

.zen-cennik .zen-cennik__search-input,
input.zen-cennik__search-input {
    width: 100% !important;
    padding: 16px 54px 16px 24px !important;
    border: 2px solid rgba(139, 111, 78, 0.2) !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    color: #3a3a3a !important;
    background: rgba(139, 111, 78, 0.03) !important;
    outline: none !important;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    box-sizing: border-box !important;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.zen-cennik .zen-cennik__search-input::placeholder,
input.zen-cennik__search-input::placeholder {
    color: #b0a090 !important;
    font-style: italic;
}

.zen-cennik .zen-cennik__search-input:focus,
input.zen-cennik__search-input:focus {
    border-color: #8B6F4E !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(139, 111, 78, 0.12) !important;
}

.zen-cennik__search-input:focus ~ .zen-cennik__search-icon {
    opacity: 1;
}

.zen-cennik__no-results {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Category */
.zen-cennik__category {
    margin-bottom: 40px;
}

.zen-cennik__category-header {
    background: #8B6F4E;
    border-radius: 12px 12px 0 0;
    padding: 14px 32px;
    margin-bottom: 0;
    text-align: center;
}

.zen-cennik__category-title,
.zen-cennik .zen-cennik__category-title,
h3.zen-cennik__category-title {
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    background: none !important;
}

/* Table */
.zen-cennik__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.zen-cennik__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.zen-cennik__table thead {
    display: none;
}

/* Rows */
.zen-cennik__row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(139, 111, 78, 0.12);
    transition: background 0.2s;
}

.zen-cennik__row:nth-child(odd) {
    background: transparent;
}

.zen-cennik__row:nth-child(even) {
    background: rgba(139, 111, 78, 0.06);
}

.zen-cennik__row:hover {
    background: rgba(214, 196, 174, 0.28);
}

/* Cells */
.zen-cennik__cell-name {
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
    line-height: 1.4;
}

.zen-cennik__cell-desc {
    font-size: 13px;
    color: #7a7a7a;
    line-height: 1.4;
}

.zen-cennik__cell-time {
    font-size: 13px;
    color: #8B6F4E;
    text-align: center;
    white-space: nowrap;
    min-width: 70px;
}

.zen-cennik__cell-price {
    font-size: 14px;
    font-weight: 600;
    color: #8B6F4E;
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

/* Override table display for grid layout */
.zen-cennik__table,
.zen-cennik__table tbody {
    display: block;
}

.zen-cennik__row {
    display: grid;
}

.zen-cennik__row td {
    border: none;
    padding: 0;
}

.zen-cennik__table tbody tr td,
.zen-cennik__table tbody tr:nth-child(odd) td,
.zen-cennik__table tbody tr:nth-child(even) td,
.zen-cennik .zen-cennik__row td {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

.zen-cennik__table tbody tr:nth-child(odd),
.zen-cennik__table tbody tr.zen-cennik__row:nth-child(odd) {
    background: transparent !important;
    background-color: transparent !important;
}

.zen-cennik__table tbody tr:nth-child(even),
.zen-cennik__table tbody tr.zen-cennik__row:nth-child(even) {
    background: rgba(139, 111, 78, 0.06) !important;
    background-color: rgba(139, 111, 78, 0.06) !important;
}

/* Empty state */
.zen-cennik-empty {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .zen-cennik {
        padding: 10px;
    }

    .zen-cennik__category-header {
        padding: 12px 20px;
        border-radius: 10px 10px 0 0;
    }

    .zen-cennik__category-title {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .zen-cennik__row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 16px;
    }

    .zen-cennik__cell-time,
    .zen-cennik__cell-price {
        text-align: left;
    }

    .zen-cennik__cell-time::before {
        content: 'Czas: ';
        font-weight: 400;
        color: #999;
    }

    .zen-cennik__cell-price::before {
        content: 'Cena: ';
        font-weight: 400;
        color: #999;
    }

    .zen-cennik__cell-desc:empty {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .zen-cennik__row {
        grid-template-columns: 1.3fr 1fr auto auto;
        gap: 6px;
        padding: 12px 16px;
    }
}
