/* Daszke Price List Styles - Masonry Layout */

.price-list {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 60px 20px;
    background: #ffffff;
    color: #2c2c2c;
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Title (H1) */
.price-list h1.cathegory {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 60px 0 40px 0;
    color: #2c2c2c;
    border-bottom: 2px solid #a38c5c;
    padding-bottom: 20px;
    width: 100%;
}

.price-list h1.cathegory:first-of-type {
    margin-top: 0;
}

/* Strong tag in h1 - for second word or single-word titles */
.price-list h1.cathegory strong {
    font-weight: 600;
    color: #2c2c2c;
}

/* If h1 contains only strong (single-word titles), make it slightly bolder */
.price-list h1.cathegory:has(> strong:only-child) {
    font-weight: 400;
}

.price-list h1.cathegory:has(> strong:only-child) strong {
    font-weight: 600;
}

/* Masonry Row - 3 Columns */
.masonry-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

/* Masonry Column */
.masonry-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Subcategory Title (H2) */
.price-list h2 {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 15px 0;
    text-transform: capitalize;
    border-bottom: 1px solid rgba(163, 140, 92, 0.3);
    padding-bottom: 8px;
}

/* Table Styles */
.price-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.price-list table thead {
    background: #f8f8f8;
}

.price-list table thead th {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 10px;
    text-align: center;
    color: #2c2c2c;
    border-bottom: 2px solid #a38c5c;
}

.price-list table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.price-list table tbody tr:last-child {
    border-bottom: none;
}

.price-list table tbody td {
    padding: 10px 8px;
    vertical-align: top;
}

.price-list table tbody td:first-child {
    font-weight: 400;
    color: #2c2c2c;
}

.price-list table tbody td:last-child {
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    color: #a38c5c;
    text-align: right;
    white-space: nowrap;
}

/* Colspan styling for special rows */
.price-list table tbody td[colspan="2"] {
    text-align: center;
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.price-list table tbody td[colspan="2"] strong {
    font-weight: 600;
    color: #2c2c2c;
    font-style: normal;
}

/* Paragraph Styles */
.price-list p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 10px 0 0 0;
    font-style: italic;
}

/* Responsive Design - Tablets */
@media (max-width: 1024px) {
    .masonry-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .price-list h1.cathegory {
        font-size: 2.2rem;
        margin: 50px 0 30px 0;
    }

    .price-list h2 {
        font-size: 1.3rem;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .price-list {
        padding: 40px 15px;
    }

    .masonry-row {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .price-list h1.cathegory {
        font-size: 1.8rem;
        margin: 40px 0 25px 0;
        padding-bottom: 15px;
        letter-spacing: 1px;
    }

    .price-list h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .price-list table {
        font-size: 0.9rem;
    }

    .price-list table thead th {
        font-size: 0.8rem;
        padding: 10px 8px;
    }

    .price-list table tbody td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .price-list {
        padding: 30px 12px;
    }

    .price-list h1.cathegory {
        font-size: 1.5rem;
        margin: 30px 0 20px 0;
    }

    .price-list h2 {
        font-size: 1.1rem;
    }

    .price-list table {
        font-size: 0.85rem;
    }

    .price-list table thead th {
        font-size: 0.75rem;
        padding: 8px 5px;
    }

    .price-list table tbody td {
        padding: 7px 5px;
    }

    .price-list p {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .price-list {
        padding: 20px;
        background: white;
    }

    .masonry-row {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .masonry-column {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .price-list h1.cathegory {
        page-break-after: avoid;
        margin-top: 40px;
    }

    .price-list h1.cathegory:first-of-type {
        margin-top: 0;
    }

    .price-list h2 {
        page-break-after: avoid;
    }
}
