/*
    Product Listing layout design css
    Redesigned on 24 June 2026
*/

svg.w-5.h-5 {
    width: 3%;
}

.flex.justify-between.flex-1.sm\:hidden {
    display: none;
}

/* column spacing */
.product-col {
    margin-bottom: 25px;
}

/* Premium Card Layout */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    background: #fff;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Image Container */
.product-image-container {
    height: 160px;
    background-color: #fafafa;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .transition-zoom {
    transform: scale(1.08);
}

/* Card Body */
.product-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 !important;
}

/* MPN styling */
.product-meta {
    font-size: 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

.product-meta:hover {
    background: #f1f3f5;
}

.copy-btn {
    transition: opacity 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.copy-btn:hover {
    opacity: 0.8;
}

.copy-btn:active {
    transform: scale(0.92);
}

.font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Title */
.product-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    height: 42px;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #212529;
    transition: color 0.15s ease;
    text-decoration: none !important;
}

.product-title a:hover {
    color: #007bff;
}

/* Description */
.product-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    height: 38px;
    margin-bottom: 12px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Package Badge */
.product-package-badge {
    margin-bottom: 12px;
}

.badge-package {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    display: inline-block !important;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.05) !important;
}

/* Price */
.product-price {
    font-size: 18px;
    font-weight: bold;
    color: red;
    margin-top: auto; /* Pushes price to the bottom if description is short */
    margin-bottom: 15px;
}

/* Footer & Actions */
.product-footer-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* Custom Buttons colors matching your design */
.btn-outline-primary {
    color: #0062cc;
    border-color: #0062cc;
}

.btn-success {
    background-color: #28a745;
    border: none;
}

.btn-success:hover {
    background-color: #ffffff !important;
    border: 1px solid #157347;
    color: #157347 !important;
}

/* Search Module Styling */
.search-box-wrapper {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.search-box-wrapper input {
    height: 50px;
    padding-left: 20px;
}

.search-box-wrapper .btn-primary {
    background-color: #0062cc;
    border: none;
    border-radius: 0;
}

/* Sidebar Styling */
.filter-sidebar {
    background-color: #fcfcfc;
}

.filter-group h6 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 0.9rem;
}

.x-small {
    font-size: 0.75rem;
}

/* Enquiry Card styling */
.border-top-accent {
    border-top: 4px solid #007bff !important;
}

.search-empty-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    font-size: 2.25rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

#enquiryForm .form-control:focus {
    box-shadow: none;
    border-color: #007bff;
}

#enquiryForm .input-group:focus-within .input-group-text {
    border-color: #007bff;
    color: #007bff !important;
}

.sourcing-btn {
    transition: all 0.25s ease;
}

.sourcing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3) !important;
}
