/* SRP Product Card CSS - Extends product-card.css for consistency */
@import url('./product-card.css');

/* Override specific styling for SRP grid view */
.inventory-results.grid .product-card {
    width: 293px;
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    background: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Product specs override for non-RV products */
.inventory-results.grid .product-specs {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-results.grid .spec-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    line-height: 25px;
}

.inventory-results.grid .spec-divider {
    width: 25px;
    align-self: stretch;
    border-left: 1px solid #E7E7E7;
    height: 25px;
}

.inventory-results.grid .spec-value-unit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.inventory-results.grid .spec-value {
    color: black;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    line-height: 25px;
}

.inventory-results.grid .spec-unit {
    color: black;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
}

/* Price row styling */
.inventory-results.grid .product-price-row {
    align-self: stretch;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inventory-results.grid .product-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #FC0606;
    font-size: 24px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    letter-spacing: 0.48px;
}

/* View more section styling */
.inventory-results.grid .view-more-section {
    align-self: stretch;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
}

.inventory-results.grid .view-more-header {
    align-self: stretch;
    background: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.inventory-results.grid .divider-line {
    flex: 1;
    height: 0px;
    border-top: 1px solid #E7E7E7;
}

.inventory-results.grid .view-more-text {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
}

.inventory-results.grid .view-more-text span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    line-height: 16px;
}

.inventory-results.grid .view-more-text i {
    color: #888888;
}

.inventory-results.grid .specs-details {
    width: 100%;
    background: white;
    overflow: hidden;
    border: 1px solid #F6F6F6;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inventory-results.grid .specs-details.open {
    display: flex;
}

.inventory-results.grid .spec-row {
    align-self: stretch;
    padding: 4px 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.inventory-results.grid .spec-row:nth-child(even) {
    background: #F6F6F6;
}

.inventory-results.grid .spec-label {
    flex: 1;
    opacity: 0.70;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
    font-size: 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
}

.inventory-results.grid .spec-detail {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
    font-size: 12px;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    line-height: 16px;
}

/* Button styling for SRP */
.inventory-results.grid .btn-view-details {
    align-self: stretch;
    padding: 16px 18px;
    background: linear-gradient(0deg, white 0%, #ECECEC 50%, white 50%, #ECECEC 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.inventory-results.grid .btn-view-details span {
    color: #6D6D6D;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 16px;
    letter-spacing: 0.5px;
}

.inventory-results.grid .btn-secondary-red {
    align-self: stretch;
    padding: 16px 18px;
    border: 2px solid #FC0606;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    text-decoration: none;
}

.inventory-results.grid .btn-secondary-red span {
    color: black;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 16px;
    letter-spacing: 0.5px;
}

.inventory-results.grid .btn-secondary-gray {
    align-self: stretch;
    padding: 16px 18px;
    border: 2px solid #888888;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: transparent;
    text-decoration: none;
}

.inventory-results.grid .btn-secondary-gray span {
    color: black;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 16px;
    letter-spacing: 0.5px;
}

/* Product details section */
.inventory-results.grid .product-details {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.inventory-results.grid .detail-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.inventory-results.grid .detail-label,
.inventory-results.grid .detail-value {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: black;
    font-size: 10px;
    font-family: Montserrat, sans-serif;
    font-weight: 400;
    line-height: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inventory-results.grid .product-card {
        width: 100%;
    }

    .inventory-results.grid .product-image-container {
        width: 100%;
    }
}