/* Product Details Modal Styling */
.modal-lg {
    width: 90%;
    max-width: 900px;
}

.product-info {
    padding: 20px;
}

.product-title {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.price-section {
    border: 2px dashed #e74c3c;
    padding: 10px;
    background-color: #fff5f5;
    border-radius: 5px;
}

.product-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.quantity-section label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.product-description {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.product-short-desc {
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading animation for buttons */
.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product card hover effects */
.product-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.product-card .panel {
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.product-card:hover .panel {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.product-image:hover {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-lg {
        width: 95%;
    }
    
    .action-buttons .btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* Button improvements */
.view-details {
    background-color: #3498db;
    border-color: #3498db;
}

.view-details:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    
    
    
}














/* Common Panel (Default + Info) */
.panel.panel-default,
.panel.panel-info {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 380px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid #ddd;
    position: relative;
}
.panel.panel-default:hover,
.panel.panel-info:hover {
    transform: translateY(-5px);
}

/* Panel Heading */
.panel-heading {
    background: #2c3e50 !important;
    color: white !important;
    font-weight: 600;
    text-align: center;
    border-radius: 10px 10px 0 0;
    font-size: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Panel Body (Image area) */
.panel-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
}
.panel-body img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 5px;
}

/* Price + Add to Cart */
.panel-price-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
    padding: 8px 12px;
    border-top: 1px solid #ddd;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.panel-price-cart .price {
    font-size: 15px;
    font-weight: bold;
    color: #333;
}
.panel-price-cart .btn-danger {
    background: #e74c3c;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    padding: 5px 10px;
    transition: 0.2s;
}
.panel-price-cart .btn-danger:hover {
    background: #c0392b;
}

/* Product Description */
.product-desc {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    min-height: 40px;
}

/* Brand Section */
.brand-section {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.brand-section li {
    list-style: none;
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.brand-section li:hover {
    background: #f1f1f1;
    cursor: pointer;
}

/* Footer */
.panel-footer {
    text-align: center;
    background: #f1f1f1;
    border-top: 1px solid #ddd;
}
.main-footer {
    background: var(--text-primary);
    color: black;
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 14px;
}

/* Tooltip */
.tooltip-inner {
    max-width: 250px;
    text-align: left;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    #get_product .product-card {
        flex: 1 1 calc(50% - 20px);
    }
}
@media (max-width: 767px) {
    #get_product {
        flex-direction: column;
    }
    #get_product .product-card {
        flex: 1 1 100%;
    }
    .brand-section {
        margin: 10px 0;
    }
}
.dropdown-menu {
    max-height: 400px;
    overflow-y: auto;
}


