* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f5f0;
    color: #333;
    line-height: 1.6;
    max-width: 414px;
    margin: 0 auto;
}

.container {
    max-width: 414px;
    margin: 0 auto;
    padding: 10px;
}

.screen {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.top-nav {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 414px;
    margin: 0 auto;
}

.logo {
    font-size: 16px;
    font-weight: bold;
    margin-right: 12px;
    white-space: nowrap;
    color: #d4af37;
}

.filter-section {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-row select {
    flex: 1;
    min-width: 120px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

.craftsman-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.craftsman-card {
    background: #fff;
    border: 1px solid #e0d5c1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.craftsman-image {
    width: 100%;
    height: 160px;
    position: relative;
}

.craftsman-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.craftsman-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(139, 69, 19, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.craftsman-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.craftsman-name {
    font-size: 15px;
    color: #333;
    font-weight: bold;
}

.craftsman-skill {
    font-size: 13px;
    color: #8B4513;
}

.craftsman-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.craftsman-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 10px;
    flex-wrap: wrap;
}

.craftsman-price {
    color: #c00;
    font-weight: bold;
}

.craftsman-rating {
    color: #666;
}

.craftsman-actions {
    display: flex;
    gap: 10px;
}

.craftsman-btn {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #8b451347;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    background: #f8f5f0;
    color: #8B4513;
}

.craftsman-btn:hover {
    background: #e8e0d5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #8B4513;
    color: #8B4513;
}

.page-btn.active {
    background: #8B4513;
    color: #fff;
    border-color: #8B4513;
}

.bottom-nav {
    background: #1a1a2e;
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 414px;
    margin: 0 auto;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    gap: 4px;
}

.nav-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

#float-btn {
    position: fixed;
    right: 15px;
    bottom: 80px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: #fff;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    cursor: pointer;
    z-index: 99;
}
