/* KhachHang UI - Customer Area Styles */

body {
    background-color: #f8f9fa;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 0;
}

.page-header h2 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 28px;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-section h5 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.province-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.province-filter .btn {
    font-size: 13px;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.province-filter .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.province-filter .btn-outline-secondary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

/* Card Styles */
.htx-card {
    background: white;
    border: none;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.htx-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.htx-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
}

.htx-card-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.htx-card-body {
    padding: 15px;
}

.htx-card-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.htx-card-footer .btn {
    transition: all 0.3s ease;
}

.htx-card-footer .btn:hover {
    transform: translateY(-2px);
}

/* Info Rows */
.htx-info {
    margin-bottom: 12px;
}

.htx-info:last-child {
    margin-bottom: 0;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
}

.info-row .label {
    font-weight: 600;
    color: #667eea;
    min-width: 90px;
    flex-shrink: 0;
}

.info-row .value {
    color: #555;
    flex: 1;
}

.info-row .value a {
    color: #667eea;
    text-decoration: none;
}

.info-row .value a:hover {
    text-decoration: underline;
}

/* Badges and Tags */
.location-badge {
    display: inline-block;
    background: #e8f4f8;
    color: #0066cc;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* Empty State */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.no-data i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-data p {
    font-size: 15px;
    margin: 0;
}

/* Province Section */
.province-section {
    margin-bottom: 35px;
}

.province-section-title {
    background: #f8f9fa;
    padding: 12px 15px;
    border-left: 4px solid #667eea;
    margin-bottom: 15px;
    border-radius: 4px;
}

.province-section-title h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.province-count {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 20px 0;
        margin-bottom: 20px;
    }

    .page-header h2 {
        font-size: 22px;
    }

    .htx-card-body {
        padding: 12px;
    }

    .info-row {
        flex-direction: column;
        gap: 3px;
    }

    .info-row .label {
        min-width: auto;
    }

    .province-filter {
        gap: 6px;
    }

    .province-filter .btn {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* HTX Detail Page Styles */
.htx-detail-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.htx-detail-image {
    border-radius: 8px;
    overflow: hidden;
}

.htx-detail-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    color: #999;
}

.placeholder-image i {
    font-size: 48px;
    margin-bottom: 12px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

.info-value {
    margin: 8px 0 0 0;
    color: #666;
    font-size: 0.95rem;
}

.location-badge {
    display: inline-block;
    background: #e7f3ff;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.htx-map-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.htx-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.no-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #999;
}

.no-map i {
    font-size: 48px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    color: #ddd;
    font-size: 40px;
}

.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.product-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-name a {
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #0066cc !important;
}

.product-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.product-stats {
    font-size: 0.8rem;
    display: flex;
    gap: 16px;
}

.product-price {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

.price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc3545;
}

.unit-text {
    font-size: 0.85rem;
    color: #999;
    margin-left: 4px;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-data i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 16px;
}

.no-data h5 {
    color: #666;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 32px;
}

.page-header h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.breadcrumb {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 0;
    margin-bottom: 16px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
    .htx-map-container {
        height: 300px;
        margin-top: 20px;
    }

    .page-header h2 {
        font-size: 1.5rem;
    }

    .product-card {
        margin-bottom: 16px;
    }
}

