/* ==========================================
   PREMIUM PRODUCT CARD STYLING (UNIFIED)
   ========================================== */

.product-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(122, 12, 12, 0.05), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(201, 162, 39, 0.15);
    /* Soft gold border */
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(122, 12, 12, 0.12), 0 2px 8px rgba(201, 162, 39, 0.1);
    border-color: var(--accent, #C9A227);
}

/* Image Wrapper */
.product-card .img-box {
    position: relative;
    width: 100%;
    height: 230px;
    /* Fixed height for consistency */
    overflow: hidden;
    background-color: #f7f5f0;
}

.product-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Prevents stretching and distortion */
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .img-box img {
    transform: scale(1.06);
}

/* Card Body */
.product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

/* Product Title */
.product-card .card-body h3 {
    font-family: 'Georgia', serif;
    color: var(--text-dark, #1c1c1c);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;

    /* Ellipsis after 2 lines to maintain alignment */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
    /* Aligns pricing and buttons across cards */
}

/* Price */
.product-card .card-body .price {
    font-family: 'Georgia', serif;
    color: var(--accent, #C9A227);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}

/* Premium Crimson Button */
.product-card .card-body .btn-small {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid transparent;
    background: var(--primary, #7A0C0C);
    color: var(--white, #ffffff);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.product-card .card-body .btn-small:hover {
    background: var(--secondary, #E63946);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.25);
    transform: translateY(-1px);
}

.product-card .card-body .btn-small:active {
    transform: translateY(1px);
}

/* Optional Rare Badge */
.product-card .rare-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent, #C9A227);
    color: var(--white, #ffffff);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   MOBILE RESPONSIVENESS (SLEEKER LOOK)
   ========================================== */

@media (max-width: 768px) {
    .product-card {
        height: auto;
        min-height: 235px;
        width: 100%;
        min-width: 0;
        border-radius: 14px;
    }

    /* SPECIFIC CAROUSEL CARD CONSTRAINT: Prevent horizontal stretch in horizontal scroll wrappers */
    .carousel .product-card {
        width: 165px !important;
        height: 235px !important;
    }

    .carousel .product-card .img-box {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }

    .carousel .product-card .card-body {
        padding: 8px 10px !important;
        gap: 6px !important;
    }

    .carousel .product-card .card-body h3 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
        min-height: 32px !important;
    }

    .carousel .product-card .price {
        font-size: 13px !important;
    }

    .carousel .product-card .original-price {
        font-size: 10px !important;
    }

    .carousel .product-card .btn-small {
        padding: 7px 6px !important;
        font-size: 10px !important;
        margin-top: auto !important;
    }

    .product-card .img-box {
        height: 135px;
        min-height: 135px;
        max-height: 135px;
    }
    .card-body {
        padding: 10px 12px;
        gap: 6px;
    }
    .card-category {
        font-size: 8px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    .card-body h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .price {
        font-size: 16px;
    }
    .original-price {
        font-size: 11px;
    }
    .btn-small {
        padding: 10px;
        font-size: 11px;
    }
}