/* ===================================================================
   PRODUCT QUOTATION POPUP — Shop/E-commerce Style Modal
   For: Giveaways & Printing sub-sections
   =================================================================== */

/* --- CSS Variables (inherits from portfolio-grid.css) --- */
/* Uses: --red, --black from :root */

/* ===========================
   MODAL BASE & OVERLAY
   =========================== */
.pq-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pq-modal.active {
    opacity: 1;
    visibility: visible;
}

.pq-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===========================
   MODAL CONTENT CARD
   =========================== */
.pq-modal-content {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: min(520px, 92vw);
    max-height: 90vh;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pq-modal.active .pq-modal-content {
    transform: scale(1) translateY(0);
}

/* ===========================
   CLOSE BUTTON
   =========================== */
.pq-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s ease;
    line-height: 0;
    padding: 0;
}

.pq-modal-close:hover {
    background: var(--red, #ff3026);
    border-color: var(--red, #ff3026);
    transform: rotate(90deg) scale(1.05);
}

.pq-modal-close svg {
    width: 20px;
    height: 20px;
}

/* ===========================
   PRODUCT IMAGE AREA
   =========================== */
.pq-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #0a0a0a;
    overflow: hidden;
}

.pq-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pq-modal-content:hover .pq-image-wrapper img {
    transform: scale(1.03);
}

/* Category/Sub-section badge on top of the image */
.pq-image-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--red, #ff3026);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(255, 48, 38, 0.4);
}

/* No image placeholder */
.pq-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ===========================
   PRODUCT DETAILS BODY
   =========================== */
.pq-body {
    padding: 28px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Product Title */
.pq-title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Meta Tags Row */
.pq-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pq-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f4f5;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    transition: background 0.2s ease;
}

.pq-meta-tag strong {
    color: var(--red, #ff3026);
    font-weight: 700;
}

.pq-meta-separator {
    color: #ccc;
    font-size: 10px;
    user-select: none;
}

/* Product Description */
.pq-description {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar for description */
.pq-description::-webkit-scrollbar {
    width: 4px;
}

.pq-description::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.pq-description::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.pq-description::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* No description placeholder */
.pq-no-description {
    font-size: 13px;
    color: #bbb;
    font-style: italic;
}

/* ===========================
   CTA BUTTON — Get Quotation
   =========================== */
.pq-cta-wrapper {
    padding-top: 4px;
}

.pq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--red, #ff3026);
    color: #fff;
    padding: 16px 0px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(255, 48, 38, 0.25);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.pq-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pq-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 48, 38, 0.4);
    background: #e62b22;
    color: #fff;
    text-decoration: none;
}

.pq-cta-btn:hover::before {
    opacity: 1;
}

.pq-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(255, 48, 38, 0.3);
}

.pq-cta-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pq-cta-btn:hover svg {
    transform: translateX(3px);
}

/* ===========================
   LOADING STATE
   =========================== */
.pq-modal.loading-state .pq-modal-content {
    opacity: 0.4;
    pointer-events: none;
}

.pq-modal.loading-state::after {
    content: '';
    position: absolute;
    z-index: 100;
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--red, #ff3026);
    border-radius: 50%;
    animation: pqSpin 0.7s linear infinite;
}

@keyframes pqSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================
   RESPONSIVE — TABLET & MOBILE
   =========================== */
@media (max-width: 600px) {
    .pq-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .pq-modal-content {
        width: 100%;
        max-height: 92vh;
        border-radius: 24px 24px 0 0;
        transform: scale(1) translateY(100%);
    }

    .pq-modal.active .pq-modal-content {
        transform: scale(1) translateY(0);
    }

    .pq-image-wrapper {
        aspect-ratio: 16 / 10;
    }

    .pq-body {
        padding: 22px 20px 28px;
        gap: 14px;
    }

    .pq-title {
        font-size: 20px;
    }

    .pq-description {
        max-height: 100px;
        font-size: 13px;
    }

    .pq-cta-btn {
        padding: 14px 20px;
        font-size: 14px;
        border-radius: 14px;
    }
}

@media (max-width: 380px) {
    .pq-body {
        padding: 18px 16px 24px;
    }

    .pq-title {
        font-size: 18px;
    }

    .pq-meta-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
}