/* ==========================================================================
   Instant Product List — Page Styles
   ========================================================================== */


/* ── Page header ──────────────────────────────────────────────────────── */
.instant-products-header {
    padding: 64px 20px 48px;
}
 
.instant-products-header .page-main-title {
    font-size: 42px;
    font-weight: 800;
    color: #000000;
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
 
.instant-products-header .page-sub-title {
    font-size: 17px;
    color: #000000;
    font-weight: 400;
    line-height: 1.75;
    margin: 0 auto;           
}

.instant-product-list {
    padding-left:  150px;
    padding-right: 150px;
    padding-top: 10px;
    background: #F9F7F7;
}

.product-image {
    width: 356;
    height: 297;
}

@media (max-width: 768px) {
    .instant-product-list {
        padding-left:  20px;
        padding-right: 20px;
    }
    .instant-products-header {
        padding: 40px 20px 32px;
    }
    .instant-products-header .page-main-title {
        font-size: 28px;
    }
    .instant-products-header .page-sub-title {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .instant-products-header .page-sub-title {
        padding-left: 100; 
        padding-right: 100;         
    }
    
}

.instant-products-header {
    padding: 44px 20px 32px;
}

.instant-products-header .page-main-title {
    font-size: 34px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.2;
}

.instant-products-header .page-sub-title {
    font-size: 16px;
    color: #777;
    margin: 0;
    font-weight: 400;
}


/* ── Product grid container ───────────────────────────────────────────── */

#instant-product-grid {
    margin-top: 36px;
}

.product-card-wrap {
    margin-bottom: 32px;
}


/* ── Product card ─────────────────────────────────────────────────────── */

.product-card {
    background: #ffffff;
    border: 1.5px solid #ebebeb;
    border-radius: 14px;
    padding: 28px 20px 30px;
    text-align: center;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    border-color: #c8c8c8;
}


/* ── Card — image ─────────────────────────────────────────────────────── */

.product-card__image-wrap {
    margin-bottom: 22px;
}

.product-card__image-wrap img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}


/* ── Card — text ──────────────────────────────────────────────────────── */

.product-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.35;
}

.product-card__price {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    margin: 0 0 12px; /* reduced to make room for the stock badge below */
}

/* ── Card — stock badge ───────────────────────────────────────────────── */

.product-card__stock {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;         /* green — stock remaining */
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

.product-card__stock--out {
    color: #c62828;         /* red — sold out */
}


/* ── Card — out-of-stock state ────────────────────────────────────────── */

.product-card--out-of-stock {
    opacity: 0.6;
}

.product-card--out-of-stock .product-card__image-wrap img {
    filter: grayscale(60%);
}


/* ── Card — button ────────────────────────────────────────────────────── */

.product-card__btn {
    display: inline-block;
    background: #111111;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 13px 40px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;

    /* Override any Bootstrap btn styles */
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}

.product-card__btn:hover,
.product-card__btn:focus,
.product-card__btn:active {
    background: #2e2e2e;
    color: #ffffff;
    text-decoration: none;
    box-shadow: none;
    outline: none;
    transform: translateY(-4px) scale(1.05);
}

.product-card__btn--disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.product-card__btn--disabled:hover,
.product-card__btn--disabled:focus {
    background: #cccccc;
    color: #888888;
    transform: none;
}


/* ── Loading state ────────────────────────────────────────────────────── */

#product-loader {
    padding: 70px 20px;
    color: #999;
    font-size: 16px;
}

#product-loader .ip-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid #ddd;
    border-top-color: #555;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
    animation: ip-spin 0.75s linear infinite;
}

@keyframes ip-spin {
    to { transform: rotate(360deg); }
}


/* ── Error state ──────────────────────────────────────────────────────── */

#product-error {
    margin-top: 28px;
    border-radius: 8px;
}


/* ── Empty state ──────────────────────────────────────────────────────── */

.ip-empty {
    padding: 60px 20px;
    color: #aaa;
    font-size: 16px;
}
