/* ========================================
   ENHANCED PRODUCT STYLING - PRESERVE LAYOUT
   ======================================== */

/* Enhance existing card-body elements without restructuring */
.card-body {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    cursor: pointer !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    min-height: 400px !important;
    justify-content: space-between !important;
}

.card-body:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    border-color: #007bff !important;
}

/* Make entire card clickable */
.card-body * {
    pointer-events: none !important;
}

.card-body a {
    pointer-events: auto !important;
}

/* Professional Product Title Styling */
.card-body h4 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.card-body h4 a {
    color: #2c3e50 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.card-body h4 a:hover {
    color: #007bff !important;
}

/* Enhanced Price Styling */
.p-price {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-align: center !important;
    margin-bottom: 8px !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}

/* Tax Information Styling */
.p-price[style*="font-size:13px"] {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #666666 !important;
    text-align: center !important;
    margin-top: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
}

/* Center align price container */
.col-7.text-right {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Product Specifications Enhancement */
.p-spec {
    background: #f8f9fa !important;
    color: #495057 !important;
    padding: 4px 10px !important;
    border-radius: 15px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border: 1px solid #dee2e6 !important;
    margin: 2px !important;
}

/* Enhanced Read More Button */
.card-body a[href*="read"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
    margin-top: 10px !important;
}

.card-body a[href*="read"]:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Image Enhancement */
.card-body img {
    transition: transform 0.3s ease !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
}

.card-body:hover img {
    transform: scale(1.02) !important;
}

/* Product Image Container */
.card-body .text-center {
    margin-bottom: 15px !important;
    flex-shrink: 0 !important;
}

/* Row alignment improvements */
.card-body .row {
    align-items: center !important;
    margin-bottom: 15px !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Equal height and spacing for all cards */
.view-content {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    padding: 20px !important;
}

/* Product content alignment */
.card-body .text-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

/* Specifications row alignment */
.card-body .row.mx-auto {
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .p-price {
        font-size: 16px !important;
    }
    
    .p-price[style*="font-size:13px"] {
        font-size: 10px !important;
    }
}

/* Loading state */
.card-body.loading {
    opacity: 0.8 !important;
    pointer-events: none !important;
}

.card-body.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent) !important;
    animation: shimmer 1.5s infinite !important;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}