/* =========================================================
   SHOPPING GALLERY
   ========================================================= */

.shopping-gallery-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 28px 100px;
    box-sizing: border-box;
}


/* =========================================================
   HEADER
   ========================================================= */

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.gallery-header-left h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
}

.gallery-header-left p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.gallery-header-right {
    display: flex;
    align-items: center;
}

.selected-count {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 20px;
    background: #f0f4f8;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   FILTER BAR
   ========================================================= */

.gallery-filter-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    padding: 18px 20px;
    margin-bottom: 22px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    min-width: 300px;
}

.filter-field label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.filter-field select {
    min-height: 40px;
    padding: 8px 12px;

    border: 1px solid #cbd5e1;
    border-radius: 6px;

    background: #ffffff;

    font-size: 14px;
    color: #1f2937;

    outline: none;
}

.filter-field select:focus {
    border-color: #64748b;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-primary,
.btn-secondary {
    min-height: 40px;

    padding: 8px 18px;

    border-radius: 6px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.btn-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-secondary {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #374151;
}

.btn-secondary:hover {
    background: #f8fafc;
}


/* =========================================================
   PRODUCT LIST
   ========================================================= */

.shopping-product-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.shopping-product-card {
    position: relative;

    display: grid;

    grid-template-columns:
        90px
        250px
        minmax(0, 1fr);

    gap: 22px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shopping-product-card:hover {
    border-color: #cbd5e1;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   SELECT
   ========================================================= */

.product-select {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding-top: 5px;
}

.product-select input[type="checkbox"] {
    width: 18px;
    height: 18px;

    cursor: pointer;
}

.product-select label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;

    cursor: pointer;
}


/* =========================================================
   IMAGE
   ========================================================= */

.product-image-container {
    width: 250px;
    height: 190px;

    overflow: hidden;

    border-radius: 8px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.product-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.no-product-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #94a3b8;
    font-size: 14px;
}


/* =========================================================
   DETAILS
   ========================================================= */

.product-details {
    min-width: 0;
}

.product-category {
    display: inline-block;

    margin-bottom: 7px;

    padding: 4px 9px;

    border-radius: 4px;

    background: #f1f5f9;

    color: #475569;

    font-size: 12px;
    font-weight: 600;
}

.product-title {
    margin: 0 0 9px;

    color: #111827;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.3;
}

.product-description {
    max-width: 900px;

    margin-bottom: 15px;

    color: #4b5563;

    font-size: 14px;
    line-height: 1.6;

    white-space: pre-line;
}

.no-description {
    color: #9ca3af;
    font-style: italic;
}


/* =========================================================
   PRICE
   ========================================================= */

.product-price {
    margin-bottom: 14px;

    color: #166534;

    font-size: 20px;
    font-weight: 700;
}

.product-price span {
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   META
   ========================================================= */

.product-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 12px 24px;

    margin-bottom: 13px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    color: #94a3b8;

    font-size: 11px;
    font-weight: 600;

    text-transform: uppercase;
}

.meta-value {
    color: #374151;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   CONTACT
   ========================================================= */

.product-contact {
    padding-top: 10px;

    border-top: 1px solid #eef2f7;

    color: #64748b;

    font-size: 13px;
}

.product-contact strong {
    color: #374151;
}


/* =========================================================
   NO PRODUCTS
   ========================================================= */

.no-products {
    padding: 70px 30px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.no-products-icon {
    margin-bottom: 12px;

    font-size: 42px;
}

.no-products h2 {
    margin: 0 0 8px;

    color: #374151;

    font-size: 20px;
}

.no-products p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   SELECTED CARD
   ========================================================= */

.shopping-product-card.product-selected {
    border-color: #2563eb;

    box-shadow:
        0 0 0 1px #2563eb,
        0 4px 14px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   BOTTOM ACTION BAR
   ========================================================= */

.selection-action-bar {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 28px;

    background: #ffffff;

    border-top: 1px solid #dbe2ea;

    box-shadow:
        0 -3px 12px rgba(0, 0, 0, 0.08);
}

.selection-summary {
    color: #475569;
    font-size: 14px;
}

.selection-summary strong {
    color: #111827;
    font-size: 16px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .shopping-product-card {
        grid-template-columns:
            70px
            190px
            minmax(0, 1fr);

        gap: 15px;
    }

    .product-image-container {
        width: 190px;
        height: 160px;
    }

}


@media (max-width: 700px) {

    .shopping-gallery-page {
        padding: 18px 14px 100px;
    }

    .gallery-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-field {
        min-width: 0;
        width: 100%;
    }

    .filter-actions {
        width: 100%;
    }

    .filter-actions button {
        width: 100%;
    }

    .shopping-product-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-select {
        order: 1;
    }

    .product-image-container {
        order: 2;

        width: 100%;
        height: 220px;
    }

    .product-details {
        order: 3;
    }

    .selection-action-bar {
        padding: 12px 14px;
    }

}