/* ============================================================
   YSFP SOLAR FINANCE PRODUCT CARDS
   RESPONSIVE LAYOUT - DESKTOP, TABLET AND MOBILE
   ============================================================ */

/* ============================================================
   GLOBAL BOX SIZING
   Prevents padding and borders from increasing element widths.
   Scoped to the products section to protect other page sections.
   ============================================================ */

.solar-products-section,
.solar-products-section *,
.solar-products-section *::before,
.solar-products-section *::after {
    box-sizing: border-box;
}


/* ============================================================
   MAIN SECTION
   ============================================================ */

.solar-products-section {
    width: 100%;
    max-width: 100%;
    padding: 80px 20px;
    background: #f7faf8;
    font-family: Arial, Helvetica, sans-serif;
}

.solar-products-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}


/* ============================================================
   SECTION HEADER
   ============================================================ */

.products-header {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.products-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #159447;
}

.products-header h2 {
    margin: 0 0 15px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    color: #123524;
    overflow-wrap: break-word;
}

.products-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */

.solar-products-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;

    width: 100%;
    min-width: 0;

    align-items: stretch;
}


/* ============================================================
   PRODUCT CARD
   ============================================================ */

.solar-product-card {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.solar-product-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}



/* ============================================================
   PRODUCT IMAGE
   ============================================================ */

/*.product-image-container {
    position: relative;

    width: 100%;
    height: 230px;

    flex-shrink: 0;

    overflow: hidden;

    background: #e8f5ec;
}

.product-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
} 

.solar-product-card:hover .product-image {
    transform: scale(1.04);
}*/



/* ============================================================
   YSFP PRODUCT IMAGE DISPLAY AND ROTATION
   ============================================================ */

.product-image-container {
    position: relative;
    width: 100%;
    height: 230px;
    min-height: 230px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e8f5ec;
}

.product-image-container .product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 0.7s ease-in-out;
}

.product-image-container .product-image.image-fading {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .product-image-container .product-image {
        transition: none;
    }
}

@media (max-width: 650px) {
    .product-image-container {
        height: 220px;
        min-height: 220px;
    }
}



/* ============================================================
   PRODUCT BADGE
   ============================================================ */

.product-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    max-width: calc(100% - 30px);

    padding: 7px 12px;

    border-radius: 30px;

    background: #ffffff;
    color: #147a3e;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}


/* ============================================================
   PRODUCT CONTENT
   ============================================================ */

.product-content {
    width: 100%;
    min-width: 0;

    padding: 22px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.product-content h3 {
    margin: 0 0 10px;

    color: #123524;

    font-size: 22px;
    line-height: 1.3;

    overflow-wrap: break-word;
}

.product-description {
    min-height: 72px;

    margin: 0 0 20px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   PRODUCT SPECIFICATIONS
   ============================================================ */

.product-specification {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 12px;

    padding: 11px 0;

    border-top: 1px solid #edf0ef;

    font-size: 13px;
}

.product-specification span {
    color: #64748b;
}

.product-specification strong {
    color: #1e293b;

    text-align: right;

    overflow-wrap: break-word;
}


/* ============================================================
   QUANTITY AND CAPACITY CONTROLS
   ============================================================ */

.quantity-control,
.capacity-control {
    width: 100%;
    min-width: 0;

    margin-top: 20px;
}

.quantity-control label,
.capacity-control label {
    display: block;

    margin-bottom: 9px;

    color: #334155;

    font-size: 13px;
    font-weight: 700;
}


/* ============================================================
   QUANTITY SELECTOR
   ============================================================ */

.quantity-selector {
    display: flex;
    align-items: center;

    width: 100%;
    height: 48px;

    border: 1px solid #dbe3df;
    border-radius: 10px;

    overflow: hidden;
}

.quantity-btn {
    flex: 0 0 48px;

    width: 48px;
    height: 100%;

    padding: 0;

    border: none;

    background: #edf8f1;
    color: #147a3e;

    font-size: 24px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.quantity-btn:hover {
    background: #d9f1e2;
}

.quantity-selector input {
    flex: 1 1 auto;

    width: 0;
    min-width: 0;
    height: 100%;

    padding: 0 5px;

    border: none;
    outline: none;

    background: #ffffff;

    text-align: center;

    color: #123524;

    font-size: 17px;
    font-weight: 700;
}


/* Remove number input arrows */

.quantity-selector input::-webkit-inner-spin-button,
.quantity-selector input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-selector input[type="number"] {
    -moz-appearance: textfield;
}


/* ============================================================
   CAPACITY SELECT DROPDOWN
   ============================================================ */

.capacity-control select {
    display: block;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    height: 48px;

    padding: 0 12px;

    border: 1px solid #dbe3df;
    border-radius: 10px;

    background: #ffffff;

    color: #123524;

    font-size: 14px;
    font-weight: 600;

    outline: none;

    cursor: pointer;
}

.capacity-control select:focus {
    border-color: #159447;

    box-shadow: 0 0 0 3px rgba(21, 148, 71, 0.10);
}


/* ============================================================
   PRODUCT TOTAL
   ============================================================ */

.product-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin-top: auto;
    padding-top: 17px;

    border-top: 1px solid #edf0ef;
}

.product-total span {
    color: #64748b;
    font-size: 13px;
}

.product-total strong {
    color: #159447;
    font-size: 18px;
}


/* ============================================================
   PACKAGE SUMMARY
   ============================================================ */


/* ============================================================
   PACKAGE SUMMARY
   ============================================================ */

.solar-package-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;

    width: 100%;
    min-width: 0;

    margin-top: 35px;
    padding: 30px;

    border-radius: 20px;

    background: #123524;
    color: #ffffff;

    box-shadow: 0 12px 30px rgba(18, 53, 36, 0.12);
}

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
    width: 100%;
    min-width: 0;
}

.summary-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #8ee0a8;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.summary-content h3 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 24px;
    line-height: 1.3;
}

#packageSummaryText {
    margin: 0;

    color: #d4e9db;

    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   SUMMARY CAPACITY
   ============================================================ */

.summary-capacity {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 25px;

    flex-wrap: wrap;
}

.summary-capacity > div {
    display: flex;
    flex-direction: column;

    gap: 8px;

    min-width: 100px;
}

.summary-capacity span {
    color: #b8d5c1;

    font-size: 12px;
}

.summary-capacity strong {
    color: #ffffff;

    font-size: 19px;
    font-weight: 800;
}

/* ============================================================
   SYSTEM COST ESTIMATE
   ============================================================ */

.system-cost-estimate {
    width: 100%;
    min-width: 0;

    margin: 10px 0 0 !important;
    padding: 24px !important;

    border: 1px solid #cfe5d5 !important;
    border-radius: 14px !important;

    background: #edf7f0 !important;
}

.system-cost-estimate > div:first-child span {
    color: #176b39 !important;
}

.system-cost-estimate > div:first-child p {
    color: #52665a !important;
}

.system-cost-estimate > div:nth-child(2) > div {
    background: #ffffff !important;

    border: 1px solid #d8e8dc !important;
    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(18, 53, 36, 0.04);
}

.system-cost-estimate > div:nth-child(2) > div > span {
    color: #64748b !important;
}

#cashSystemCost,
#financedSystemCost {
    color: #176b39 !important;

    font-size: clamp(18px, 2.2vw, 23px) !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

#cashSystemCostNote,
#financedSystemCostNote {
    display: block;
    color: #64748b !important;
    line-height: 1.5;
}

#systemCostEstimateMessage {
    color: #52665a !important;
    line-height: 1.6;
}

/* ============================================================
   REGISTER INTEREST BUTTON
   ============================================================ */

.solar-interest-btn {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 12px;

    width: 100%;
    min-height: 54px;

    padding: 15px 25px;

    border: none;
    border-radius: 10px;

    background: #25a65a;
    color: #ffffff;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.solar-interest-btn:hover {
    background: #168744;

    transform: translateY(-2px);

    box-shadow: 0 8px 18px rgba(37, 166, 90, 0.25);
}

.solar-interest-btn:active {
    transform: translateY(0);
}

.solar-interest-btn span {
    font-size: 21px;
}

/* ============================================================
   TABLET RESPONSIVENESS
   ============================================================ */

@media (max-width: 950px) {

    .solar-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-capacity {
        justify-content: flex-start;
        width: 100%;
    }

}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 650px) {

    .solar-products-section {
        padding: 55px 15px;
    }

    .solar-products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .product-image-container {
        height: 220px;
    }

    .product-content {
        padding: 20px;
    }

    .solar-package-summary {
        padding: 23px;
        gap: 22px;
    }

    .summary-content h3 {
        font-size: 21px;
    }

    .summary-capacity {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }

    .summary-capacity > div {
        min-width: 0;
    }

    .summary-capacity strong {
        font-size: 16px;
        overflow-wrap: anywhere;
    }

    .system-cost-estimate {
        padding: 17px !important;
    }

    .solar-interest-btn {
        font-size: 15px;
    }

}

/* ============================================================
   SMALL MOBILE SCREENS
   ============================================================ */

@media (max-width: 380px) {

    .solar-products-section {
        padding: 40px 12px;
    }

    .product-content {
        padding: 17px;
    }

    .summary-capacity {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-capacity strong {
        font-size: 15px;
    }

    .system-cost-estimate {
        padding: 14px !important;
    }

}












