/* =====================================================
   Shared Product Card (Shop + Index)
   Single source of truth – no container, full-width layout
   ===================================================== */

.product-card {
    background: #0f1b2d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.product-card .product-image {
    display: block;
    position: relative;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.product-card .product-image .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 27, 45, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.product-card .product-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .meta {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-card .meta .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 159, 28, 0.25);
    color: #ff9f1c;
    border-radius: 6px;
    font-weight: 600;
}

.product-card .meta .discount-pct {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.product-card .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.product-card .price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
}

.product-card .old-price {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
}

.product-card .current-price {
    color: #ff9f1c;
    font-weight: 600;
    font-size: 1.05rem;
}

.product-card .add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #ff9f1c;
    color: #0f1b2d;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.product-card .add-to-cart-btn:hover {
    background: #e88a0f;
    color: #0f1b2d;
    transform: scale(1.05);
}

.product-card .add-to-cart-btn i {
    font-size: 1.25rem;
}

/* Column/row stretch so cards fill grid and have equal height (Shop + Index) */
.products-grid .col-sm-6,
.products-grid .col-md-4,
.products-grid .col-lg-3,
.row .col-sm-6,
.row .col-md-4,
.row .col-lg-3 {
    display: flex;
}

.products-grid .product-card,
.row .product-card {
    width: 100%;
}
