/* Cap's Catering Products
   ------------------------------------------------------------------ */

.caps-products-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Filter buttons */
.caps-filter {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.caps-filter-btn {
    padding: 12px 28px;
    border: 1px solid #F5ECD4;
    background: #fff;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.1s ease;
    color: inherit;
    font-family: inherit;
}

.caps-filter-btn:hover {
    background: #FAF5E4;
}

.caps-filter-btn.is-active {
    background: #5BC4E5;
    border-color: #5BC4E5;
    color: #fff;
}

/* Delivery banner */
.caps-service-banner {
    text-align: center;
    font-style: italic;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: #FAF5E4;
    border: 1px solid #F5ECD4;
    border-radius: 12px;
}

.caps-service-banner[hidden] { display: none; }

/* Masonry layout via CSS columns */
.caps-grid {
    column-count: 3;
    column-gap: 30px;
}

/* Tile */
.caps-tile {
    background: #fff;
    border: 1px solid #F5ECD4;
    border-radius: 20px;
    padding: 4%;
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0 0 30px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    animation: capsFadeIn 0.45s ease both;
}

.caps-tile.is-hidden { display: none; }

@keyframes capsFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.caps-tile-img {
    width: 100%;
    margin-bottom: 16px;
}

.caps-tile-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.caps-tile-title {
    font-size: 3em;
    line-height: 1.05;
    margin: 0.2em 0 0.3em;
    color: #5BC4E5;
}

.caps-tile-price {
    font-weight: 700;
    margin: 0 0 0.15em;
}

.caps-tile-desc {
    font-weight: 400;
    margin: 0;
}

.caps-delivery-min {
    display: block;
    margin-top: 0.5em;
    font-size: 0.85em;
    opacity: 0.75;
}

/* Pill tag (e.g. optional staff add-on) */
.caps-pill {
    display: inline-block;
    align-self: flex-start;
    margin-top: 14px;
    padding: 6px 14px;
    background: #F5ECD4;
    color: #333;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1.3;
}

/* Suppress WP Tooltips plugin output inside our grid */
.caps-products-wrap .glossarylink,
.caps-products-wrap .wp_tooltip,
.caps-products-wrap .cmtt_tooltip_link,
.caps-products-wrap a.tooltip,
.caps-products-wrap [data-tooltip] {
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: inherit !important;
}
.caps-products-wrap .tooltip-content,
.caps-products-wrap .wp-tooltip,
.caps-products-wrap .tooltipster-base {
    display: none !important;
}

/* Empty state */
.caps-empty {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .caps-grid { column-count: 2; column-gap: 20px; }
    .caps-tile { margin-bottom: 20px; }
    .caps-tile-title { font-size: 2.2em; }
}

@media (max-width: 600px) {
    .caps-grid { column-count: 1; }
    .caps-tile-title { font-size: 2em; }
}
