/* Home page product grid — rows stay aligned and cards stretch to identical compact height, centered when fewer items */
.list-product.center-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 16px !important;
}

.list-product.center-grid > * {
    flex: 0 1 calc((100% - 16px) / 2) !important;
    max-width: calc((100% - 16px) / 2) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

@media (min-width: 640px) {
    .list-product.center-grid {
        justify-content: center !important;
        gap: 18px !important;
    }
    .list-product.center-grid > * {
        flex: 0 1 calc((100% - 18px) / 2) !important;
        max-width: calc((100% - 18px) / 2) !important;
    }
}

@media (min-width: 768px) {
    .list-product.center-grid {
        justify-content: center !important;
        gap: 20px !important;
    }

    .list-product.center-grid > * {
        flex: 0 1 calc((100% - 40px) / 3) !important;
        max-width: calc((100% - 40px) / 3) !important;
    }
}

@media (min-width: 1024px) {
    .list-product.center-grid {
        justify-content: center !important;
        gap: 24px !important;
    }

    .list-product.center-grid > * {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        width: 280px !important;
    }
}

/* Skeleton loader strict suppression */
.skeleton-item.hidden,
.skeleton-item[style*="display: none"],
.skeleton-item[style*="display:none"],
.skeleton-item.removed {
    display: none !important;
}

/* Equal Height Card Styling */
.product-item,
.product-item.grid-type {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
}

.product-item .product-main,
.product-item.grid-type .product-main,
.product-main {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    position: relative !important;
    border: 1px solid #e9ecef !important;
    border-radius: 18px !important;
    background-color: #ffffff !important;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.product-item:hover .product-main,
.product-item.grid-type .product-main:hover,
.product-main:hover {
    transform: translateY(-4px) !important;
    border-color: #d1d5db !important;
    box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.1) !important;
}

.product-card-top {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-infor {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    margin-top: 2px !important;
}

.product-item.grid-type .product-thumb {
    background: #f8f6f2 !important;
    position: relative !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #f1ece4 !important;
}

.product-item.grid-type .product-img {
    aspect-ratio: 4 / 3.1 !important;
    max-height: 152px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: transparent !important;
    padding: 6px !important;
}

.product-item.grid-type .product-img img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.4s ease !important;
}

.product-item.grid-type .product-main:hover .product-img img {
    transform: scale(1.04) !important;
}

.product-item.grid-type .product-name {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    line-height: 1.25 !important;
    height: 2.2rem !important;
    min-height: 2.2rem !important;
    max-height: 2.2rem !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f2c1f !important;
    transition: color 0.2s ease !important;
}

.product-item.grid-type .product-main:hover .product-name {
    color: #500044 !important;
}

.product-item.grid-type .product-subtitle {
    height: 1.05rem !important;
    min-height: 1.05rem !important;
    max-height: 1.05rem !important;
    line-height: 1.05rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 11px !important;
    color: #64748b !important;
    margin-top: 2px !important;
    margin-bottom: 3px !important;
}

.product-item.grid-type .product-rating-row {
    height: 1.1rem !important;
    min-height: 1.1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 4px !important;
}

.product-item.grid-type .product-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    margin-top: auto !important;
    margin-bottom: 6px !important;
    min-height: 24px !important;
}

/* Strikethrough for original/market price (katta hua) */
.product-origin-price,
del.product-origin-price,
.product-price-row del,
.product-price-row .product-origin-price,
.line-through {
    text-decoration: line-through !important;
    -webkit-text-decoration-line: line-through !important;
    text-decoration-line: line-through !important;
    text-decoration-color: #94a3b8 !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
    display: inline-block !important;
}

/* Modern Dynamic Stock Badges */
.stock-tag {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    border-radius: 9999px !important;
    padding: 3px 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
}

.stock-tag .stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* IN STOCK: Crisp Green with Live Pulse */
.stock-tag.in-stock,
.product-item .product-tag.stock-tag.in-stock {
    background-color: rgba(236, 253, 245, 0.95) !important;
    color: #065f46 !important;
    border: 1px solid rgba(167, 243, 208, 0.95) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

.stock-tag.in-stock .stock-dot {
    background-color: #10b981 !important;
    box-shadow: 0 0 6px #10b981;
    animation: liveStockPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* OUT OF STOCK: Sleek Rose/Crimson */
.stock-tag.out-of-stock,
.product-item .product-tag.stock-tag.out-of-stock {
    background-color: rgba(254, 242, 242, 0.95) !important;
    color: #991b1b !important;
    border: 1px solid rgba(254, 202, 202, 0.95) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12) !important;
}

.stock-tag.out-of-stock .stock-dot {
    background-color: #ef4444 !important;
}

@keyframes liveStockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.8); }
}

.product-card-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 6px !important;
    border-top: none !important;
}

.product-card-actions button {
    width: 100% !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    user-select: none !important;
    font-family: inherit !important;
}

.product-card-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: auto !important;
}

/* CRITICAL: BOTH Add to Cart and Buy Now use dark maroon brand color #500044 with white text and icons */
.product-card-actions .add-cart-btn,
.product-card-actions .buy-now-btn {
    background: #500044 !important;
    background-color: #500044 !important;
    color: #ffffff !important;
    border: 1.5px solid #500044 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    padding: 6px 12px !important;
    min-height: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-shadow: 0 2px 6px rgba(80, 0, 68, 0.18) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    text-decoration: none !important;
}

.product-card-actions .add-cart-btn:hover,
.product-card-actions .buy-now-btn:hover,
.product-card-actions .add-cart-btn:focus,
.product-card-actions .buy-now-btn:focus,
.product-card-actions .add-cart-btn:active,
.product-card-actions .buy-now-btn:active {
    background: #3c0033 !important;
    background-color: #3c0033 !important;
    border-color: #3c0033 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(60, 0, 51, 0.35) !important;
    transform: translateY(-1px);
}

.product-card-actions .add-cart-btn *,
.product-card-actions .buy-now-btn * {
    color: #ffffff !important;
}

.discount-badge-forest {
    background-color: #1b4332 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.discount-badge-forest i {
    color: #a3e635 !important;
}

.product-subtitle {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    margin-top: 3px;
    margin-bottom: 2px;
}

.save-badge {
    display: inline-flex;
    align-items: center;
    background-color: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    padding: 2px 7px;
    border-radius: 6px;
}

.product-category {
    color: #8c6d62;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.product-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.product-rating {
    font-size: 11px;
    letter-spacing: 0.02em;
}

.product-meta-row {
    font-size: 11px;
}



