/* DrSPaintBrush Catalogue. All rules are scoped to plugin classes so the theme is unaffected. */

.dpb-gallery {
    --dpb-ink: #2b2622;
    --dpb-muted: #6f655c;
    --dpb-line: #e6dfd6;
    --dpb-paper: #fbf8f3;
    --dpb-accent: #8a4b2a;
    --dpb-accent-ink: #ffffff;
    color: var(--dpb-ink);
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.dpb-filters {
    background: var(--dpb-paper);
    border: 1px solid var(--dpb-line);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
}

.dpb-filters .dpb-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.dpb-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--dpb-muted);
    min-width: 9rem;
}

.dpb-filters input[type="search"],
.dpb-filters input[type="number"],
.dpb-filters select {
    border: 1px solid var(--dpb-line);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.95rem;
    background: #fff;
    color: var(--dpb-ink);
}

.dpb-filters input[type="search"] { min-width: 16rem; }

.dpb-filters fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1rem;
}

.dpb-filters legend {
    font-size: 0.85rem;
    color: var(--dpb-muted);
    margin-bottom: 0.5rem;
}

.dpb-chip {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.35rem !important;
    border: 1px solid var(--dpb-line);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    margin: 0 0.4rem 0.4rem 0;
    background: #fff;
    cursor: pointer;
    font-size: 0.875rem !important;
    color: var(--dpb-ink) !important;
    min-width: 0 !important;
}

.dpb-filters input[type="checkbox"]:checked + * { font-weight: 600; }

.dpb-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.dpb-actions .button,
.dpb-quote button.button,
.dpb-quote-button {
    background: var(--dpb-accent) !important;
    color: var(--dpb-accent-ink) !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 0.6rem 1.1rem !important;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.dpb-actions a { color: var(--dpb-muted); }

.dpb-count {
    margin-left: auto;
    color: var(--dpb-muted);
    font-size: 0.9rem;
}

.dpb-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.dpb-card {
    background: #fff;
    border: 1px solid var(--dpb-line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dpb-card a { text-decoration: none; color: inherit; }

.dpb-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    background: var(--dpb-paper);
}

.dpb-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin: 0.9rem 0.9rem 0.25rem;
}

.dpb-card h3 a:hover { color: var(--dpb-accent); }

.dpb-meta {
    font-size: 0.82rem;
    color: var(--dpb-muted);
    margin: 0 0.9rem;
}

.dpb-price {
    margin: auto 0.9rem 0.9rem;
    padding-top: 0.6rem;
    font-weight: 600;
}

.dpb-price small,
.dpb-price-note {
    font-weight: 400;
    color: var(--dpb-muted);
    font-size: 0.8rem;
}

.dpb-quote-items li { margin-bottom: 0.4rem; }
.dpb-quote-items label { display: flex; gap: 0.5rem; align-items: center; cursor: pointer; }

.dpb-quote input[type="text"],
.dpb-quote input[type="email"],
.dpb-quote input[type="tel"],
.dpb-quote textarea {
    width: 100%;
    max-width: 28rem;
    border: 1px solid var(--dpb-line);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
}

.dpb-quote label { display: block; margin-bottom: 0.25rem; color: var(--dpb-muted); }

.dpb-error {
    background: #fbeaea;
    border: 1px solid #e7b6b6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #7a2222;
}

.dpb-notice {
    background: #eef6ec;
    border: 1px solid #bcd9b5;
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}

.dpb-gst-note {
    font-size: 0.9rem;
    color: var(--dpb-muted);
}

@media (max-width: 600px) {
    .dpb-filters label { min-width: 0; width: 100%; }
    .dpb-filters input[type="search"] { min-width: 0; width: 100%; }
    .dpb-count { margin-left: 0; width: 100%; }
    .dpb-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
}

/* Art form samples: [dpb_art_form type="..."] */
.dpb-art-sample { margin: 1rem 0 2rem; }
.dpb-art-sample img { display: block; width: 100%; height: auto; border-radius: 4px; }
.dpb-art-sample figcaption { margin-top: .5rem; font-size: .95rem; }

/* Cart hint pointing to the quote page */
.dpb-quote-hint { padding: .75rem 1rem; background: #f7f3ec; border-radius: 4px; }
.dpb-quote-cta { margin-left: .5rem; }

/* Quote basket bar, shown on every page while the basket has paintings */
.dpb-basket-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1.25rem; background: #2b2b2b; color: #fff; }
.dpb-basket-bar a.button { white-space: nowrap; }

/* Remove link on the quote form */
.dpb-remove { margin-left: .75rem; font-size: .9rem; }

/* Quote request page: tidy layout for the selection list and contact form */
.dpb-quote { max-width: 560px; }
.dpb-quote p { margin: 0 0 1.1rem; }
.dpb-quote-items { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.dpb-quote-items li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid #e6e1d8; }
.dpb-quote-items label { display: inline; margin: 0; font-weight: normal; }
.dpb-quote-items input[type="checkbox"] { width: auto; margin: 0 .5rem 0 0; }
.dpb-quote-items .dpb-remove { margin: 0; font-size: .9rem; color: #8a5a2b; text-decoration: underline; white-space: nowrap; }
.dpb-quote form label { display: block; margin: 0 0 .35rem; }
.dpb-quote form p { margin-bottom: 1.25rem; }
.dpb-quote input[type="text"],
.dpb-quote input[type="email"],
.dpb-quote input[type="tel"],
.dpb-quote textarea { display: block; width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid #cfc8bc; border-radius: 4px; background: #fff; font: inherit; }
.dpb-quote select { display: block; width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid #cfc8bc; border-radius: 4px; background: #fff; font: inherit; }
.dpb-quote textarea { min-height: 110px; resize: vertical; }
.dpb-quote button.button { padding: .7rem 1.6rem; cursor: pointer; }

/* Shared button style for quote calls to action */
:root { --dpb-accent: #8a5a2b; --dpb-accent-dark: #6d4520; }
.dpb-quote button.button,
.dpb-quote-cta,
.dpb-basket-bar a.button {
    display: inline-block;
    background: var(--dpb-accent);
    color: #fff !important;
    border: 1px solid var(--dpb-accent);
    border-radius: 4px;
    padding: .7rem 1.5rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
    transition: background .15s ease, box-shadow .15s ease;
    cursor: pointer;
}
.dpb-quote button.button:hover,
.dpb-quote-cta:hover,
.dpb-basket-bar a.button:hover { background: var(--dpb-accent-dark); border-color: var(--dpb-accent-dark); color: #fff !important; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.dpb-quote button.button:focus-visible,
.dpb-quote-cta:focus-visible,
.dpb-basket-bar a.button:focus-visible { outline: 3px solid #f0c98f; outline-offset: 2px; }
.dpb-basket-bar a.button { padding: .55rem 1.25rem; }
.dpb-quote-cta { margin-left: .5rem; padding: .45rem 1rem; }

/* Quote form fields: clearer borders and focus state */
.dpb-quote input[type="text"],
.dpb-quote input[type="email"],
.dpb-quote input[type="tel"],
.dpb-quote select,
.dpb-quote textarea { border: 1px solid #b9b1a3; border-radius: 4px; padding: .65rem .8rem; background: #fffdf9; transition: border-color .15s ease, box-shadow .15s ease; }
.dpb-quote input:focus,
.dpb-quote select:focus,
.dpb-quote textarea:focus { outline: none; border-color: var(--dpb-accent); box-shadow: 0 0 0 3px rgba(138,90,43,.2); }
.dpb-quote form label { font-weight: 600; font-size: .95rem; color: #3a3a3a; }
.dpb-quote form p:last-of-type { margin-top: 1.5rem; }
