/* Dental Marketplace - Public Styles */

/* Hero Section */
.dm-hero {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 40px;
}

.dm-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0284c7 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.dm-hero p {
    font-size: 1.25rem;
    color: #4b5563;
}

/* Container */
.dm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Filters */
.dm-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dm-filters select,
.dm-filters input[type="search"] {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.dm-filters select:focus,
.dm-filters input:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Products Grid */
.dm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Product Card */
.dm-product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dm-product-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.dm-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #bae6fd 0%, #7dd3fc 100%);
}

.dm-product-body {
    padding: 20px;
}

.dm-product-category {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: #075985;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.dm-product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
}

.dm-product-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.dm-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dm-product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0284c7;
}

/* Buttons */
.dm-btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.dm-btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dm-btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.dm-btn-secondary {
    background: white;
    color: #0284c7;
    border: 2px solid #0284c7;
}

.dm-btn-secondary:hover {
    background: #e0f2fe;
}

.dm-btn-block {
    width: 100%;
}

.dm-btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Modal */
.dm-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.dm-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

.dm-modal-large {
    max-width: 900px;
}

.dm-modal-close {
    color: #9ca3af;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.dm-modal-close:hover {
    color: #111827;
}

/* Cart */
.dm-cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 12px;
}

.dm-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.dm-cart-item-info {
    flex: 1;
}

.dm-cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.dm-cart-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0284c7;
}

.dm-cart-total {
    padding: 20px 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 20px;
    font-size: 1.5rem;
    text-align: right;
}

/* Loading */
.dm-loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .dm-hero h1 {
        font-size: 2rem;
    }

    .dm-products-grid {
        grid-template-columns: 1fr;
    }

    .dm-filters {
        flex-direction: column;
    }

    .dm-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}