.pqg-product-grid-wrap,
.pqg-product-detail-page {
    box-sizing: border-box;
}

.pqg-product-grid-wrap *,
.pqg-product-detail-page * {
    box-sizing: border-box;
}

.pqg-product-search {
    margin-bottom: 18px;
}

.pqg-product-search-input {
    display: block;
    width: 100%;
    max-width: 520px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: #222222;
    padding: 12px 18px;
    line-height: 1.3;
}

.pqg-product-search-input:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.38);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.pqg-product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pqg-filter-button {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: #222222;
    padding: 10px 16px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pqg-filter-button:hover,
.pqg-filter-button.is-active {
    transform: translateY(-1px);
    background: #222222;
    color: #ffffff;
}

.pqg-product-grid {
    display: grid;
    grid-template-columns: repeat(var(--pqg-columns, 3), minmax(0, 1fr));
    gap: 24px;
}

.pqg-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pqg-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.10);
}

.pqg-product-card.is-hidden,
.pqg-product-card.is-filter-hidden,
.pqg-product-card.is-scroll-hidden {
    display: none;
}

.pqg-infinite-controls {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 28px;
    text-align: center;
}

.pqg-infinite-controls[hidden],
.pqg-load-more-button[hidden] {
    display: none !important;
}

.pqg-infinite-status {
    color: #666666;
    font-size: 0.95rem;
}

.pqg-load-more-button {
    appearance: none;
    border: 1px solid #111111;
    border-radius: 999px;
    background: transparent;
    color: #111111;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.pqg-load-more-button:hover {
    background: #111111;
    color: #ffffff;
}

.pqg-infinite-sentinel {
    width: 100%;
    height: 1px;
}

.pqg-product-card-image {
    position: relative;
    display: block;
    width: 100%;
    padding-top: var(--pqg-image-ratio, 66%);
    overflow: hidden;
    background: #f4f4f4;
}

.pqg-product-card-image img,
.pqg-detail-main-image,
.pqg-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pqg-product-card-image img,
.pqg-image-placeholder {
    position: absolute;
    inset: 0;
}

.pqg-image-placeholder,
.pqg-detail-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eeeeee;
    color: #777777;
}

.pqg-product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.pqg-product-card-cats,
.pqg-detail-categories {
    margin-bottom: 8px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777777;
}

.pqg-product-card-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.25;
}

.pqg-product-card-title a {
    color: inherit;
    text-decoration: none;
}

.pqg-product-card-excerpt {
    margin: 0 0 18px;
    color: #555555;
}

.pqg-product-card-button,
.pqg-detail-cta,
.pqg-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    padding: 12px 18px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pqg-product-card-button:hover,
.pqg-detail-cta:hover,
.pqg-submit-button:hover {
    color: #ffffff;
    transform: translateY(-1px);
    opacity: 0.92;
}


/* Quote buttons are transparent by default, while keeping the existing dark hover treatment. */
.pqg-product-card-button,
.pqg-detail-cta {
    border: 1px solid #111111;
    background: transparent;
    color: #111111;
}

.pqg-product-card-button:hover,
.pqg-detail-cta:hover {
    background: #111111;
    color: #ffffff;
}

.pqg-empty-state {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    text-align: center;
}

.pqg-product-detail-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.pqg-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 36px;
    align-items: center;
    margin-bottom: 42px;
}

.pqg-detail-hero-media {
    overflow: hidden;
    border-radius: 26px;
    background: #f4f4f4;
    min-height: 360px;
}

.pqg-detail-main-image {
    min-height: 360px;
    max-height: 620px;
}

.pqg-detail-title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
}

.pqg-detail-short-description {
    margin-bottom: 24px;
    font-size: 1.12rem;
    color: #555555;
}

.pqg-detail-section {
    margin-bottom: 34px;
}

.pqg-detail-section h2,
.pqg-detail-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.pqg-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.pqg-gallery-thumb {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background: #eeeeee;
}

.pqg-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    align-items: start;
}

.pqg-detail-card {
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 22px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.06);
}

.pqg-brochure-list {
    display: grid;
    gap: 10px;
}

.pqg-brochure-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #f7f7f7;
    color: inherit;
    text-decoration: none;
}

.pqg-brochure-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 32px;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.pqg-quote-form {
    display: grid;
    gap: 14px;
}

.pqg-quote-form label,
.pqg-size-fieldset {
    display: grid;
    gap: 7px;
    margin: 0;
    font-weight: 700;
}

.pqg-quote-form input,
.pqg-quote-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-weight: 400;
}

.pqg-size-fieldset {
    border: 0;
    padding: 0;
}

.pqg-size-fieldset legend {
    margin-bottom: 10px;
    font-weight: 800;
}

.pqg-size-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.pqg-size-checkbox {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row;
    align-items: center;
    gap: 8px !important;
    padding: 12px;
    border-radius: 12px;
    background: #f7f7f7;
    font-weight: 600 !important;
}

.pqg-size-checkbox input {
    width: auto;
}

.pqg-alert {
    margin-bottom: 16px;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 700;
}

.pqg-alert-success {
    background: #eaf8ef;
    color: #146b35;
}

.pqg-alert-error {
    background: #fdeeee;
    color: #a22b2b;
}

@media (max-width: 1024px) {
    .pqg-product-grid {
        grid-template-columns: repeat(var(--pqg-columns-tablet, 2), minmax(0, 1fr));
    }

    .pqg-detail-hero,
    .pqg-detail-layout {
        grid-template-columns: 1fr;
    }

    .pqg-detail-sidebar {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .pqg-product-grid {
        grid-template-columns: repeat(var(--pqg-columns-mobile, 1), minmax(0, 1fr));
    }

    .pqg-product-detail-page {
        width: min(100% - 22px, 1180px);
        padding: 28px 0;
    }

    .pqg-detail-hero-media,
    .pqg-detail-main-image {
        min-height: 260px;
    }
}

.pqg-detail-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.pqg-detail-video {
    overflow: hidden;
    border-radius: 18px;
    background: #111111;
}

.pqg-detail-video .wp-video,
.pqg-detail-video video {
    width: 100% !important;
    max-width: 100% !important;
}

.pqg-detail-attributes {
    margin-top: 28px;
}

.pqg-attribute-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.pqg-attribute-list-row {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pqg-attribute-list dt {
    font-weight: 800;
}

.pqg-attribute-list dd {
    margin: 0;
    color: #555555;
}

.pqg-variation-quote-row {
    grid-template-columns: minmax(0, 1fr) 92px;
}

.pqg-variation-checkbox {
    align-items: flex-start;
}

.pqg-variation-thumb {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 10px;
    background: #eeeeee;
}

.pqg-variation-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pqg-variation-copy {
    display: grid;
    gap: 3px;
    line-height: 1.25;
}

.pqg-variation-copy small {
    display: block;
    color: #666666;
    font-weight: 500;
}

@media (max-width: 640px) {
    .pqg-attribute-list-row,
    .pqg-variation-quote-row {
        grid-template-columns: 1fr;
    }
}
