@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/Open_Sans/OpenSans-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Global Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
}

p {
    font-family: 'Open Sans', sans-serif;
}

/* Products Container */
.products-container {
    padding: 40px 0;
    background-color: #fafafa;
}

/* Section Headers */
.section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Professional Product Cards */
.product-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #F5921D;
}

/* Product Image Container */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 20px;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Stock Status Badge */
.stock-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: #e8f5e8;
    color: #28a745;
    border: 1px solid #28a745;
}

.stock-badge.out-of-stock {
    background: #fdeaea;
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Product Content */
.product-content {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-specs {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
    font-style: italic;
}

.product-price {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #F5921D;
    margin-bottom: 15px;
}

.product-price .currency {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
}

/* Professional Buttons */
.product-actions {
    margin-top: auto;
}

.btn-download {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #F5921D 0%, #e8831a 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-download:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-download:hover:before {
    left: 100%;
}

.btn-download:hover {
    background: linear-gradient(135deg, #e8831a 0%, #d77419 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 146, 29, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download.disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-download.disabled:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-content {
        padding: 20px 15px;
    }
    
    .product-title {
        font-size: 15px;
    }
    
    .product-price {
        font-size: 16px;
    }
    
    .btn-download {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        height: 240px;
    }
    
    .product-content {
        padding: 15px 12px;
    }
}

/* Loading Animation */
.products-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #F5921D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Legacy Support for existing classes */
.card {
    margin-top: 20px;
    margin-bottom: 30px;
}

.yy {
    margin: 0;
}

.card-img-top {
    height: 280px;
    object-fit: contain;
    padding: 20px;
}

.btn {
    border: 2px solid #F5921D;
    background-color: #ffffff;
    width: 100%;
    color: #F5921D;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #F5921D;
    color: #ffffff;
    border-color: #F5921D;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 146, 29, 0.4);
}
